Files
rappaurio-sae501_502/app/node_modules/cejs/_documents/JsDoc/symbols/_global_.html
2023-09-25 13:27:24 +02:00

4639 lines
114 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="generator" content="JsDoc Toolkit" />
<title>JsDoc Reference - _global_</title>
<style type="text/css">
/* default.css */
body
{
font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
width: 800px;
}
.header
{
clear: both;
background-color: #ccc;
padding: 8px;
}
h1
{
font-size: 150%;
font-weight: bold;
padding: 0;
margin: 1em 0 0 .3em;
}
hr
{
border: none 0;
border-top: 1px solid #7F8FB1;
height: 1px;
}
pre.code
{
display: block;
padding: 8px;
border: 1px dashed #ccc;
}
#index
{
margin-top: 24px;
float: left;
width: 160px;
position: absolute;
left: 8px;
background-color: #F3F3F3;
padding: 8px;
}
#content
{
margin-left: 190px;
width: 600px;
}
.classList
{
list-style-type: none;
padding: 0;
margin: 0 0 0 8px;
font-family: arial, sans-serif;
font-size: 1em;
overflow: auto;
}
.classList li
{
padding: 0;
margin: 0 0 8px 0;
}
.summaryTable { width: 100%; }
h1.classTitle
{
font-size:170%;
line-height:130%;
}
h2 { font-size: 110%; }
caption, div.sectionTitle
{
background-color: #7F8FB1;
color: #fff;
font-size:130%;
text-align: left;
padding: 2px 6px 2px 6px;
border: 1px #7F8FB1 solid;
}
div.sectionTitle { margin-bottom: 8px; }
.summaryTable thead { display: none; }
.summaryTable td
{
vertical-align: top;
padding: 4px;
border-bottom: 1px #7F8FB1 solid;
border-right: 1px #7F8FB1 solid;
}
/*col#summaryAttributes {}*/
.summaryTable td.attributes
{
border-left: 1px #7F8FB1 solid;
width: 140px;
text-align: right;
}
td.attributes, .fixedFont
{
line-height: 15px;
color: #002EBE;
font-family: "Courier New",Courier,monospace;
font-size: 13px;
}
.summaryTable td.nameDescription
{
text-align: left;
font-size: 13px;
line-height: 15px;
}
.summaryTable td.nameDescription, .description
{
line-height: 15px;
padding: 4px;
padding-left: 4px;
}
.summaryTable { margin-bottom: 8px; }
ul.inheritsList
{
list-style: square;
margin-left: 20px;
padding-left: 0;
}
.detailList {
margin-left: 20px;
line-height: 15px;
}
.detailList dt { margin-left: 20px; }
.detailList .heading
{
font-weight: bold;
padding-bottom: 6px;
margin-left: 0;
}
.light, td.attributes, .light a:link, .light a:visited
{
color: #777;
font-style: italic;
}
.fineprint
{
text-align: right;
font-size: 10px;
}
</style>
</head>
<body>
<!-- ============================== header ================================= -->
<!-- begin static/header.html -->
<div id="header">
</div>
<!-- end static/header.html -->
<!-- ============================== classes index ============================ -->
<div id="index">
<!-- begin publish.classesIndex -->
<div align="center"><a href="../index.html">Class Index</a>
| <a href="../files.html">File Index</a></div>
<hr />
<h2>Classes</h2>
<ul class="classList">
<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
<li><a href="../symbols/CeL.html">CeL</a></li>
<li><a href="../symbols/CeL.application.debug.html">CeL.application.debug</a></li>
<li><a href="../symbols/CeL.application.debug.log.html">CeL.application.debug.log</a></li>
<li><a href="../symbols/CeL.application.locale.html">CeL.application.locale</a></li>
<li><a href="../symbols/CeL.application.net.html">CeL.application.net</a></li>
<li><a href="../symbols/CeL.application.net.Ajax.html">CeL.application.net.Ajax</a></li>
<li><a href="../symbols/CeL.application.OS.Windows.html">CeL.application.OS.Windows</a></li>
<li><a href="../symbols/CeL.application.OS.Windows.file.html">CeL.application.OS.Windows.file</a></li>
<li><a href="../symbols/CeL.application.OS.Windows.HTA.html">CeL.application.OS.Windows.HTA</a></li>
<li><a href="../symbols/CeL.application.OS.Windows.job.html">CeL.application.OS.Windows.job</a></li>
<li><a href="../symbols/CeL.application.OS.Windows.registry.html">CeL.application.OS.Windows.registry</a></li>
<li><a href="../symbols/CeL.application.OS.Windows.WMI.html">CeL.application.OS.Windows.WMI</a></li>
<li><a href="../symbols/CeL.application.storage.file.html">CeL.application.storage.file</a></li>
<li><a href="../symbols/CeL.data.html">CeL.data</a></li>
<li><a href="../symbols/CeL.data.check.html">CeL.data.check</a></li>
<li><a href="../symbols/CeL.data.code.API.html">CeL.data.code.API</a></li>
<li><a href="../symbols/CeL.data.code.compatibility.html">CeL.data.code.compatibility</a></li>
<li><a href="../symbols/CeL.data.code.reorganize.html">CeL.data.code.reorganize</a></li>
<li><a href="../symbols/CeL.data.CSV.html">CeL.data.CSV</a></li>
<li><a href="../symbols/CeL.data.math.html">CeL.data.math</a></li>
<li><a href="../symbols/CeL.data.math.Hamming.html">CeL.data.math.Hamming</a></li>
<li><a href="../symbols/CeL.data.math.polynomial.html">CeL.data.math.polynomial</a></li>
<li><a href="../symbols/CeL.data.math.quotient.html">CeL.data.math.quotient</a></li>
<li><a href="../symbols/CeL.data.native.html">CeL.data.native</a></li>
<li><a href="../symbols/CeL.data.XML.html">CeL.data.XML</a></li>
<li><a href="../symbols/CeL.env.html">CeL.env</a></li>
<li><a href="../symbols/CeL.interact.DOM.html">CeL.interact.DOM</a></li>
<li><a href="../symbols/CeL.interact.form.address.html">CeL.interact.form.address</a></li>
<li><a href="../symbols/CeL.interact.form.select_input.html">CeL.interact.form.select_input</a></li>
<li><a href="../symbols/CeL.interact.integrate.map.html">CeL.interact.integrate.map</a></li>
<li><a href="../symbols/CeL.interact.integrate.SVG.html">CeL.interact.integrate.SVG</a></li>
</ul>
<hr />
<!-- end publish.classesIndex -->
</div>
<div id="content">
<!-- ============================== class title ============================ -->
<h1 class="classTitle">
Built-In Namespace _global_
</h1>
<!-- ============================== class summary ========================== -->
<p class="description">
</p>
<!-- ============================== constructor summary ==================== -->
<!-- ============================== properties summary ===================== -->
<table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class _global_.">
<caption>Field Summary</caption>
<thead>
<tr>
<th scope="col">Field Attributes</th>
<th scope="col">Field Name and Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">
<b><a href="../symbols/_global_.html#cache_code">cache_code</a></b>
</div>
<div class="description">是否 cache code。
若不是要重構 code 則不需要。
undefined: 依照預設
Boolean: 明確設定,但如此即無法繼承。</div>
</td>
</tr>
<tr>
<td class="attributes">&lt;constant&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">
<b><a href="../symbols/_global_.html#Class">Class</a></b>
</div>
<div class="description">JavaScript library framework main class name.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">
<b><a href="../symbols/_global_.html#get_file">get_file</a></b>
</div>
<div class="description">Get file resource by XMLHttpRequest<br/>
依序載入 resource用於 include JavaScript 檔之類需求時,取得檔案內容之輕量級函數。<br/>
除 Ajax本函數亦可用在 CScript 執行中。</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">
<b><a href="../symbols/_global_.html#global_eval">global_eval</a></b>
</div>
<div class="description">evaluate @ Global scope.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">
<b><a href="../symbols/_global_.html#i">i</a></b>
</div>
<div class="description">真正執行 module code.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">
<b><a href="../symbols/_global_.html#is_Object">is_Object</a></b>
</div>
<div class="description">Test if the value is a native Object.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">
<b><a href="../symbols/_global_.html#prototype">prototype</a></b>
</div>
<div class="description">framework main prototype definition
for JSDT: 有 prototype 才會將之當作 Class</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">
<b><a href="../symbols/_global_.html#variable_hash">variable_hash</a></b>
</div>
<div class="description">要 extend 到 name_space 下的 variables。
variable_hash[variable name] = variable full name, 包括所在 module name.</div>
</td>
</tr>
</tbody>
</table>
<!-- ============================== methods summary ======================== -->
<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class _global_.">
<caption>Method Summary</caption>
<thead>
<tr>
<th scope="col">Method Attributes</th>
<th scope="col">Method Name and Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b>_</b>()
</div>
<div class="description"></div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#_get_hash_key">_get_hash_key</a></b>(text)
</div>
<div class="description">Get the hash key of text.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b>a</b>(htm, t, js, ico)
</div>
<div class="description"></div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#add_item">add_item</a></b>(item)
</div>
<div class="description">增加項目至當前的 synchronous_group.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#add_Microsoft_translate">add_Microsoft_translate</a></b>(text, callback, from_enc, to_enc)
</div>
<div class="description">為 Microsoft Translator 設置</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#afterwards_add">afterwards_add</a></b>(item, item_is_path)
</div>
<div class="description">臨時/後續新增項目至當前的 synchronous_group.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#autodetectStringEncode">autodetectStringEncode</a></b>(str)
</div>
<div class="description">靠常用字自動判別字串之編碼 string,預設編碼</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#Big5_kana_fix">Big5_kana_fix</a></b>(text)
</div>
<div class="description">將 BIG5 日文假名碼修改為 Unicode 日文假名。</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b>c</b>(r)
</div>
<div class="description"></div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#complement">complement</a></b>(number)
</div>
<div class="description">補數計算。
正數的補數即為自身。若要求得互補之後的數字,請設成負數。</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#continued_fraction">continued_fraction</a></b>(sequence, max_no)
</div>
<div class="description">取得連分數序列的數值</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#eval_code">eval_code</a></b>(code)
</div>
<div class="description">本 library 專用之 evaluate()。
若在 function 中 eval 以獲得 local variable在舊 browser 中須加 var。
e.g.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#extend">extend</a></b>(variable_set, name_space, from_name_space)
</div>
<div class="description">延展物件 (learned from jQuery):
將 from_name_space 下的 variable_set 延展/覆蓋到 name_space。</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#factorization">factorization</a></b>(number)
</div>
<div class="description">取得某數的質因數,因式分解/素因子分解, factorization, get floor factor.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#find_class">find_class</a></b>(class_name, element, parent_node, tag_name, flag)
</div>
<div class="description"></div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#floor_sqrt">floor_sqrt</a></b>(positive)
</div>
<div class="description">得到平方數,相當於 Math.floor(Math.sqrt(number)).</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#gcd">gcd</a></b>(n1, n2)
</div>
<div class="description">Get GCD of 2 numbers</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#get_code_from_generated_various">get_code_from_generated_various</a></b>(ns, prefix, code_array)
</div>
<div class="description">把 get_various_from_code 生成的 namespace 轉成 code</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#get_function_name">get_function_name</a></b>(fr, ns, force_load)
</div>
<div class="description">獲得函數名</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#get_module">get_module</a></b>(module_name)
</div>
<div class="description">不使用 eval 的方法get the module namespace of specific module name.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#get_module_path">get_module_path</a></b>(module_name, file_name)
</div>
<div class="description">get the path of specified module.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#get_script_base_path">get_script_base_path</a></b>(JSFN)
</div>
<div class="description">得知 script file 之相對 base path</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#get_script_full_name">get_script_full_name</a></b>()
</div>
<div class="description">取得執行 script 之 path, 在 .hta 中取代 WScript.ScriptFullName。</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#get_script_name">get_script_name</a></b>()
</div>
<div class="description">取得執行 script 之名稱</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#get_variable">get_variable</a></b>(variable_name, name_space)
</div>
<div class="description">simple evaluates to get value of specified variable identifier name.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#get_various_from_code">get_various_from_code</a></b>(code, fill_code)
</div>
<div class="description">get various from code</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#get_window_status">get_window_status</a></b>(node)
</div>
<div class="description">取得當前 window status</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#has_class">has_class</a></b>(element, class_name)
</div>
<div class="description">If HTML element has specified class</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#hex">hex</a></b>(number)
</div>
<div class="description">VBScript has a Hex() function but JScript does not.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#include_module_resource">include_module_resource</a></b>(file_name, module_name)
</div>
<div class="description">include resource of module.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#include_resource">include_resource</a></b>(resource, callback, use_write, type, type, use_write)
</div>
<div class="description">Including other JavaScript/CSS files synchronously.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#inherit">inherit</a></b>(parent_module_name, initial_arguments)
</div>
<div class="description">module 中模擬 inherit 時使用。
TODO:
同步載入功能</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b>initI</b>(a)
</div>
<div class="description"></div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#initial_env">initial_env</a></b>(OS_type, reset)
</div>
<div class="description">Setup environment variables</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#is_Array">is_Array</a></b>(v)
</div>
<div class="description">Test if the value is a native Array.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#is_debug">is_debug</a></b>(debug_level)
</div>
<div class="description">Tell if it's now debugging.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#is_Function">is_Function</a></b>(v)
</div>
<div class="description">Test if the value is a native Function.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#is_loaded">is_loaded</a></b>(module_name, module_name)
</div>
<div class="description">判斷 module 是否存在,
TODO
以及是否破損。</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#is_module_pattern">is_module_pattern</a></b>(test_string)
</div>
<div class="description">test 是否符合 module pattern.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#is_type">is_type</a></b>(value, want_type, get_Class)
</div>
<div class="description">判斷為何種 type。主要用在 Error, DOMException 等 native object 之判別。</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#library_loader_by_registry">library_loader_by_registry</a></b>()
</div>
<div class="description">for 引用 include library 自 registry 中的 path</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#mutual_division">mutual_division</a></b>(n1, n2, times)
</div>
<div class="description">輾轉相除 n1/n2 或 小數 n1/1 轉成 整數/整數</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#name">name</a></b>()
</div>
<div class="description">translate {String} code_for_including to function</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#new_node">new_node</a></b>(nodes, layer)
</div>
<div class="description">創建新的 DOM 節點(node)。
createNode() 的功能補充加強版。
TODO: 分割功能(set_attrib, add_child, .</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#object_tester">object_tester</a></b>(want_type, toString_reference)
</div>
<div class="description">get a type test function</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#open_template">open_template</a></b>(FN, format, io_mode)
</div>
<div class="description"></div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#parse_require">parse_require</a></b>(dependency_list, separator, base_require)
</div>
<div class="description">解析 dependency list 以獲得所需之 module/path/variable name.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b>pv</b>(i, d, k)
</div>
<div class="description"></div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#replace_function">replace_function</a></b>(name_space, function_name, new_function)
</div>
<div class="description">workaround.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#request_item_maybe_module">request_item_maybe_module</a></b>(resource_string)
</div>
<div class="description">test function.request 的項目是否為 module.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#require_netscape_privilege">require_netscape_privilege</a></b>(privilege, callback|[callback,arguments])
</div>
<div class="description">Ask privilege in mozilla projects: Firefox 2, 3.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#set_debug">set_debug</a></b>(debug_level)
</div>
<div class="description">Set debugging level</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#set_run">set_run</a></b>(running)
</div>
<div class="description">control/setup source codes to run.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#setup_module">setup_module</a></b>(module_name, code_for_including, parent_module_name)
</div>
<div class="description">載入 module。
<p>
本函數會預先準備好下層 module 定義時的環境,但請盡量先 call 上層 name-space
再定義下層的,否則可能會出現問題,如 memory leak 等。
</p></div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#simplify_path">simplify_path</a></b>(path)
</div>
<div class="description">轉化所有 /.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#split_module_name">split_module_name</a></b>(module_name)
</div>
<div class="description">將輸入的 string 分割成各 module 單元。<br/>
need environment_adapter()<br/>
** 並沒有對 module 做完善的審核!</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#to_module_name">to_module_name</a></b>(module, separator)
</div>
<div class="description">取得 module 之 name。以 library name 起始。</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#to_rational_number">to_rational_number</a></b>(number, rate, max_no)
</div>
<div class="description">The best rational approximation.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#to_RegExp_pattern">to_RegExp_pattern</a></b>(pattern, RegExp_flag, escape_pattern)
</div>
<div class="description">String pattern (e.g.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#use">use</a></b>(module, callback, extend_to, force)
</div>
<div class="description">Include specified module.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#use_API">use_API</a></b>(API, callback)
</div>
<div class="description">自動挑選 domain</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/_global_.html#use_function">use_function</a></b>(name_space, dependency_list, extend_to, no_strict)
</div>
<div class="description">module 中需要 include function/module/variable 時設定 local variables 使用。<br/>
本函數將把所需 function include 至當前 namespace 下。
TODO: 輸入 function name 即可</div>
</td>
</tr>
</tbody>
</table>
<!-- ============================== events summary ======================== -->
<!-- ============================== constructor details ==================== -->
<!-- ============================== field details ========================== -->
<div class="sectionTitle">
Field Detail
</div>
<a name="cache_code"> </a>
<div class="fixedFont">
<span class="light">{Boolean, undefined}</span>
<b>cache_code</b>
</div>
<div class="description">
是否 cache code。
若不是要重構 code 則不需要。
undefined: 依照預設
Boolean: 明確設定,但如此即無法繼承。
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<hr />
<a name="Class"> </a>
<div class="fixedFont">&lt;constant&gt;
<b>Class</b>
</div>
<div class="description">
JavaScript library framework main class name.
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd><a href="http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf">ECMA-262</a>: Object.Class: A string value indicating the kind of this object.</dd>
</dl>
<hr />
<a name="get_file"> </a>
<div class="fixedFont">
<span class="light">{String, undefined}</span>
<b>get_file</b>
</div>
<div class="description">
Get file resource by XMLHttpRequest<br/>
依序載入 resource用於 include JavaScript 檔之類需求時,取得檔案內容之輕量級函數。<br/>
除 Ajax本函數亦可用在 CScript 執行中。
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<pre class="code">// get contents of [path/to/file]:
var file_contents = CeL.get_file('path/to/file');</pre>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd><a href=http://blog.joycode.com/saucer/archive/2006/10/03/84572.aspx">Cross Site AJAX</a>,
<a href="http://domscripting.com/blog/display/91">Cross-domain Ajax</a>,
<a href="http://forums.mozillazine.org/viewtopic.php?f=25&amp;t=737645" accessdate="2010/1/1 19:37">FF3 issue with iFrames and XSLT standards</a>,
<a href="http://kb.mozillazine.org/Security.fileuri.strict_origin_policy" accessdate="2010/1/1 19:38">Security.fileuri.strict origin policy - MozillaZine Knowledge Base</a>
Chrome: <a href="http://code.google.com/p/chromium/issues/detail?id=37586" title="between builds 39339 (good) and 39344 (bad)">NETWORK_ERR: XMLHttpRequest Exception 101</a></dd>
</dl>
<hr />
<a name="global_eval"> </a>
<div class="fixedFont">
<b>global_eval</b>
</div>
<div class="description">
evaluate @ Global scope.
By the ECMA-262, new Function() will 'Pass in the Global Environment as the Scope parameter.'
copy from jQuery core.js
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd><a href="http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context" accessdate="2011/8/6 8:56">Eval JavaScript in a global context | Java.net</a>
use execScript on Internet Explorer</dd>
</dl>
<hr />
<a name="i"> </a>
<div class="fixedFont">
<b>i</b>
</div>
<div class="description">
真正執行 module code.
<code>
_.debug('including code of [' + _.to_module_name(module_name) + ']..'),
</code>
TODO: code_for_including(_, load_arguments)
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<hr />
<a name="is_Object"> </a>
<div class="fixedFont">
<span class="light">{Boolean}</span>
<b>is_Object</b>
</div>
<div class="description">
Test if the value is a native Object.
TODO:
test null
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2009/12/20 08:38:26</dd>
</dl>
<hr />
<a name="prototype"> </a>
<div class="fixedFont">
<b>prototype</b>
</div>
<div class="description">
framework main prototype definition
for JSDT: 有 prototype 才會將之當作 Class
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<hr />
<a name="variable_hash"> </a>
<div class="fixedFont">
<b>variable_hash</b>
</div>
<div class="description">
要 extend 到 name_space 下的 variables。
variable_hash[variable name] = variable full name, 包括所在 module name.
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<!-- ============================== method details ========================= -->
<div class="sectionTitle">
Method Detail
</div>
<a name="_"> </a>
<div class="fixedFont">
<b>_</b>()
</div>
<div class="description">
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_plugin_old.class template.origin.js.html">old.class template.origin.js</a>.
</div>
<hr />
<a name="_get_hash_key"> </a>
<div class="fixedFont">
<span class="light">{String}</span>
<b>_get_hash_key</b>(text)
</div>
<div class="description">
Get the hash key of text.
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>text</b>
</dt>
<dd>text to test</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{String}</span> hash key</dd>
</dl>
<hr />
<a name="a"> </a>
<div class="fixedFont">
<b>a</b>(htm, t, js, ico)
</div>
<div class="description">
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_interact_integrate_map.origin.js.html">map.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>htm</b>
</dt>
<dd></dd>
<dt>
<b>t</b>
</dt>
<dd></dd>
<dt>
<b>js</b>
</dt>
<dd></dd>
<dt>
<b>ico</b>
</dt>
<dd></dd>
</dl>
<hr />
<a name="add_item"> </a>
<div class="fixedFont">
<b>add_item</b>(item)
</div>
<div class="description">
增加項目至當前的 synchronous_group.
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>item</b>
</dt>
<dd></dd>
</dl>
<hr />
<a name="add_Microsoft_translate"> </a>
<div class="fixedFont">
<b>add_Microsoft_translate</b>(text, callback, from_enc, to_enc)
</div>
<div class="description">
為 Microsoft Translator 設置
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_data_code_API.origin.js.html">API.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>text</b>
</dt>
<dd>test to translate</dd>
<dt>
<b>callback</b>
</dt>
<dd>callback(from text,to text)</dd>
<dt>
<b>from_enc</b>
<i>Optional</i>
</dt>
<dd></dd>
<dt>
<b>to_enc</b>
<i>Optional</i>
</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd><a href="http://msdn.microsoft.com/en-us/library/ff512406.aspx" accessdate="2010/7/12 20:22">Translate Method</a>,
<a href="http://www.west-wind.com/Weblog/posts/107136.aspx" accessdate="2010/7/12 20:22">JSONP for cross-site Callbacks - Rick Strahl's Web Log</a></dd>
</dl>
<hr />
<a name="afterwards_add"> </a>
<div class="fixedFont">
<b>afterwards_add</b>(item, item_is_path)
</div>
<div class="description">
臨時/後續新增項目至當前的 synchronous_group.
callback 用.
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>item</b>
</dt>
<dd></dd>
<dt>
<b>item_is_path</b>
</dt>
<dd></dd>
</dl>
<hr />
<a name="autodetectStringEncode"> </a>
<div class="fixedFont">
<b>autodetectStringEncode</b>(str)
</div>
<div class="description">
靠常用字自動判別字串之編碼 string,預設編碼
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_application_OS_Windows_file.origin.js.html">file.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>str</b>
</dt>
<dd></dd>
</dl>
<hr />
<a name="Big5_kana_fix"> </a>
<div class="fixedFont">
<b>Big5_kana_fix</b>(text)
</div>
<div class="description">
將 BIG5 日文假名碼修改為 Unicode 日文假名。
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_interact_DOM.origin.js.html">DOM.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>text</b>
</dt>
<dd>Unicode text</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd>from Unicode 補完計畫 jrename.js</dd>
</dl>
<hr />
<a name="c"> </a>
<div class="fixedFont">
<b>c</b>(r)
</div>
<div class="description">
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_interact_integrate_map.origin.js.html">map.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>r</b>
</dt>
<dd></dd>
</dl>
<hr />
<a name="complement"> </a>
<div class="fixedFont">
<span class="light">{Number}</span>
<b>complement</b>(number)
</div>
<div class="description">
補數計算。
正數的補數即為自身。若要求得互補之後的數字,請設成負數。
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_data_math.origin.js.html">math.origin.js</a>.
</div>
<pre class="code">alert(complement())</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{Number}</span> <b>number</b>
</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2010/3/12 23:47:52</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Number}</span> base 1: 1's Complement, 2: 2's Complement, (TODO: 3, 4, ..)</dd>
</dl>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd>http://www.tomzap.com/notes/DigitalSystemsEngEE316/1sAnd2sComplement.pdf
http://en.wikipedia.org/wiki/Method_of_complements
http://en.wikipedia.org/wiki/Signed_number_representations</dd>
</dl>
<hr />
<a name="continued_fraction"> </a>
<div class="fixedFont">
<b>continued_fraction</b>(sequence, max_no)
</div>
<div class="description">
取得連分數序列的數值
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_data_math.origin.js.html">math.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{Array}</span> <b>sequence</b>
</dt>
<dd>序列</dd>
<dt>
<span class="light fixedFont">{Number}</span> <b>max_no</b>
<i>Optional</i>
</dt>
<dd>取至第 max_no 個</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">Requires:</dt>
<dd>mutual_division.done</dd>
</dl>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd>var a=continued_fraction([1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2]);
alert(a+'\n'+a[0]/a[1]+'\n'+Math.SQRT2+'\n'+(Math.SQRT2-a[0]/a[1])+'\n'+mutual_division(a[0],a[1]));</dd>
</dl>
<hr />
<a name="eval_code"> </a>
<div class="fixedFont">
<b>eval_code</b>(code)
</div>
<div class="description">
本 library 專用之 evaluate()。
若在 function 中 eval 以獲得 local variable在舊 browser 中須加 var。
e.g., 'var local_variable=' + ..
不加 var 在舊 browser 中會變成 global 變數。
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>code</b>
</dt>
<dd>script code to evaluate</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd>value that evaluate process returned</dd>
</dl>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd>window.eval === window.parent.eval
http://stackoverflow.com/questions/3277182/how-to-get-the-global-object-in-javascript</dd>
</dl>
<hr />
<a name="extend"> </a>
<div class="fixedFont">
<b>extend</b>(variable_set, name_space, from_name_space)
</div>
<div class="description">
延展物件 (learned from jQuery):
將 from_name_space 下的 variable_set 延展/覆蓋到 name_space。
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>variable_set</b>
</dt>
<dd>variable set</dd>
<dt>
<span class="light fixedFont">{Object|Function}</span> <b>name_space</b>
</dt>
<dd>extend to what name-space</dd>
<dt>
<span class="light fixedFont">{Object|Function}</span> <b>from_name_space</b>
</dt>
<dd>When inputing function names, we need a base name-space to search these functions.</dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2009/11/25 21:17:44</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd>library names-pace</dd>
</dl>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd><a href="http://blog.darkthread.net/blogs/darkthreadtw/archive/2009/03/01/jquery-extend.aspx" accessdate="2009/11/17 1:24" title="jQuery.extend的用法 - 黑暗執行緒">jQuery.extend的用法</a>,
<a href="http://www.cnblogs.com/rubylouvre/archive/2009/11/21/1607072.html" accessdate="2010/1/1 1:40">jQuery源码学习笔记三 - Ruby's Louvre - 博客园</a></dd>
</dl>
<hr />
<a name="factorization"> </a>
<div class="fixedFont">
<span class="light">{Array}</span>
<b>factorization</b>(number)
</div>
<div class="description">
取得某數的質因數,因式分解/素因子分解, factorization, get floor factor.
唯一分解定理(The Unique Factorization Theorem)告訴我們素因子分解是唯一的,這即是稱為算術基本定理 (The Fundamental Theorem of Arithmeric) 的數學金科玉律。
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_data_math.origin.js.html">math.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{Number}</span> <b>number</b>
</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Array}</span> [prime1,power1,prime2,power2,..]</dd>
</dl>
<dl class="detailList">
<dt class="heading">Requires:</dt>
<dd>floor_sqrt</dd>
</dl>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd><a href="http://homepage2.nifty.com/m_kamada/math/10001.htm" accessdate="2010/3/11 18:7">Factorizations of 100...001</a></dd>
</dl>
<hr />
<a name="find_class"> </a>
<div class="fixedFont">
<span class="light">{[HTMLElement]}</span>
<b>find_class</b>(class_name, element, parent_node, tag_name, flag)
</div>
<div class="description">
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_interact_DOM.origin.js.html">DOM.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>class_name</b>
</dt>
<dd>class_name_1[ class_name_2 ..]</dd>
<dt>
<span class="light fixedFont">{HTMLElement}</span> <b>element</b>
</dt>
<dd>HTML elements</dd>
<dt>
<span class="light fixedFont">{HTMLElement}</span> <b>parent_node</b>
</dt>
<dd>parent node</dd>
<dt>
<span class="light fixedFont">{String}</span> <b>tag_name</b>
</dt>
<dd>tag name</dd>
<dt>
<b>flag</b>
</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{[HTMLElement]}</span> nodes</dd>
</dl>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd>document.getElementsByClassName in prototype.js,
jquery('.class')
document.querySelector()
http://www.w3.org/TR/selectors-api/
http://blog.darkthread.net/blogs/darkthreadtw/archive/2008/04/17/document-queryselector-in-ie8.aspx</dd>
</dl>
<hr />
<a name="floor_sqrt"> </a>
<div class="fixedFont">
<b>floor_sqrt</b>(positive)
</div>
<div class="description">
得到平方數,相當於 Math.floor(Math.sqrt(number)).
get integer square root
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_data_math.origin.js.html">math.origin.js</a>.
</div>
<pre class="code">var p = 20374345, q = CeL.math.floor_sqrt(p = p * p - 1); CeL.log(q + '<br/>' + (q * q) + '<br/>' + p + '<br/>' + (++q * q));</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{Number}</span> <b>positive</b>
</dt>
<dd>number</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd>r, r^2 <= number < (r+1)^2</dd>
</dl>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd><a href="http://www.azillionmonkeys.com/qed/sqroot.html" accessdate="2010/3/11 18:37">Paul Hsieh's Square Root page</a>
<a href="http://www.embeddedrelated.com/usenet/embedded/show/114789-1.php" accessdate="2010/3/11 18:34">Suitable Integer Square Root Algorithm for 32-64-Bit Integers on Inexpensive Microcontroller? | Comp.Arch.Embedded | EmbeddedRelated.com</a></dd>
</dl>
<hr />
<a name="gcd"> </a>
<div class="fixedFont">
<b>gcd</b>(n1, n2)
</div>
<div class="description">
Get GCD of 2 numbers
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_data_math.origin.js.html">math.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>n1</b>
</dt>
<dd>number 1</dd>
<dt>
<b>n2</b>
</dt>
<dd>number 2</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd>GCD of the 2 numbers</dd>
</dl>
<hr />
<a name="get_code_from_generated_various"> </a>
<div class="fixedFont">
<span class="light">{String}</span>
<b>get_code_from_generated_various</b>(ns, prefix, code_array)
</div>
<div class="description">
把 get_various_from_code 生成的 namespace 轉成 code
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_data_code_reorganize.origin.js.html">reorganize.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{Object}</span> <b>ns</b>
</dt>
<dd>root namespace</dd>
<dt>
<span class="light fixedFont">{String}</span> <b>prefix</b>
<i>Optional</i>
</dt>
<dd>(TODO) prefix of root namespace</dd>
<dt>
<span class="light fixedFont">{Array}</span> <b>code_array</b>
<i>Optional</i>
</dt>
<dd>inner use, please don't specify this value.</dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2009/12/20 14:51:52</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{String}</span> code</dd>
</dl>
<hr />
<a name="get_function_name"> </a>
<div class="fixedFont">
<b>get_function_name</b>(fr, ns, force_load)
</div>
<div class="description">
獲得函數名
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{Function}</span> <b>fr</b>
</dt>
<dd>function reference</dd>
<dt>
<span class="light fixedFont">{String}</span> <b>ns</b>
</dt>
<dd>name-space</dd>
<dt>
<span class="light fixedFont">{Boolean}</span> <b>force_load</b>
</dt>
<dd>force reload this name-space</dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2010/1/7 22:10:27</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd>可能的話請改用 {@link CeL.native.parse_function}(F).funcName</dd>
</dl>
<hr />
<a name="get_module"> </a>
<div class="fixedFont">
<span class="light">{, }</span>
<b>get_module</b>(module_name)
</div>
<div class="description">
不使用 eval 的方法get the module namespace of specific module name.
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>module_name</b>
</dt>
<dd>module name</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd>null some error occurred</dd>
<dd>namespace of specific module name</dd>
</dl>
<hr />
<a name="get_module_path"> </a>
<div class="fixedFont">
<span class="light">{String}</span>
<b>get_module_path</b>(module_name, file_name)
</div>
<div class="description">
get the path of specified module.
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<pre class="code">// 存放 data 的 path
path = library_namespace.get_module_path(this, '');</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>module_name</b>
</dt>
<dd>module name</dd>
<dt>
<span class="light fixedFont">{String}</span> <b>file_name</b>
</dt>
<dd>取得在同一目錄下檔名為 file_name 之 path。若填入 '' 可取得 parent 目錄。</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{String}</span> module path</dd>
</dl>
<hr />
<a name="get_script_base_path"> </a>
<div class="fixedFont">
<span class="light">{String}</span>
<b>get_script_base_path</b>(JSFN)
</div>
<div class="description">
得知 script file 之相對 base path
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<pre class="code"><script type="text/javascript" src="../baseFunc.js"></script>
// 引數為本.js檔名。若是更改.js檔名亦需要同步更動此值
var basePath=get_script_base_path('baseFunc.js');
perl: use File::Basename;</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>JSFN</b>
</dt>
<dd>script file name</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{String}</span> relative base path</dd>
</dl>
<hr />
<a name="get_script_full_name"> </a>
<div class="fixedFont">
<span class="light">{String, }</span>
<b>get_script_full_name</b>()
</div>
<div class="description">
取得執行 script 之 path, 在 .hta 中取代 WScript.ScriptFullName。
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{String}</span> 執行 script 之 path</dd>
<dd>'' unknown environment</dd>
</dl>
<hr />
<a name="get_script_name"> </a>
<div class="fixedFont">
<span class="light">{String, }</span>
<b>get_script_name</b>()
</div>
<div class="description">
取得執行 script 之名稱
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{String}</span> 執行 script 之 名稱</dd>
<dd>'' unknown environment</dd>
</dl>
<hr />
<a name="get_variable"> </a>
<div class="fixedFont">
<b>get_variable</b>(variable_name, name_space)
</div>
<div class="description">
simple evaluates to get value of specified variable identifier name.
不使用 eval().
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>variable_name</b>
</dt>
<dd>variable identifier name. e.g., /[a-z\d$_]+(.[a-z\d_]+)+/i</dd>
<dt>
<span class="light fixedFont">{Object|Function}</span> <b>name_space</b>
<i>Optional</i>
</dt>
<dd>initialize name-space. default: global</dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2010/1/1 18:11:40</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd>value of specified variable identifier name</dd>
</dl>
<hr />
<a name="get_various_from_code"> </a>
<div class="fixedFont">
<span class="light">{Object}</span>
<b>get_various_from_code</b>(code, fill_code)
</div>
<div class="description">
get various from code
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_data_code_reorganize.origin.js.html">reorganize.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>code</b>
</dt>
<dd>程式碼</dd>
<dt>
<span class="light fixedFont">{Boolean}</span> <b>fill_code</b>
</dt>
<dd>(TODO) 不只是定義,在 .code 填入程式碼。</dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2009/12/5 15:04:42, 2009/12/20 14:33:30, 2010/7/7 10:58:22</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Object}</span> root namespace</dd>
</dl>
<hr />
<a name="get_window_status"> </a>
<div class="fixedFont">
<span class="light">{Object}</span>
<b>get_window_status</b>(node)
</div>
<div class="description">
取得當前 window status
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_interact_DOM.origin.js.html">DOM.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>node</b>
</dt>
<dd>HTML element or Event object</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Object}</span> status</dd>
</dl>
<hr />
<a name="has_class"> </a>
<div class="fixedFont">
<span class="light">{Boolean}</span>
<b>has_class</b>(element, class_name)
</div>
<div class="description">
If HTML element has specified class
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_interact_DOM.origin.js.html">DOM.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{HTMLElement}</span> <b>element</b>
</dt>
<dd>HTML elements</dd>
<dt>
<span class="light fixedFont">{String}</span> <b>class_name</b>
</dt>
<dd>class_name_1[ class_name_2 ..]</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Boolean}</span> </dd>
</dl>
<hr />
<a name="hex"> </a>
<div class="fixedFont">
<span class="light">{String}</span>
<b>hex</b>(number)
</div>
<div class="description">
VBScript has a Hex() function but JScript does not.
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_data_math.origin.js.html">math.origin.js</a>.
</div>
<pre class="code">alert('0x'+CeL.hex(16725))</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{Number}</span> <b>number</b>
</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{String}</span> number in hex</dd>
</dl>
<hr />
<a name="include_module_resource"> </a>
<div class="fixedFont">
<b>include_module_resource</b>(file_name, module_name)
</div>
<div class="description">
include resource of module.
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<pre class="code">// 外部程式使用時,通常用在 include 相對於 library 本身路徑固定的檔案。
// 例如 file_name 改成相對於 library 本身來說的路徑。
CeL.include_module_resource('../../game/game.css');
library_namespace.include_module_resource('select_input.css', this);</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>file_name</b>
</dt>
<dd>與 module 位於相同目錄下的 resource file name</dd>
<dt>
<span class="light fixedFont">{String}</span> <b>module_name</b>
<i>Optional</i>
</dt>
<dd>呼叫的 module name。未提供則設成 library base path此時 file_name 為相對於 library 本身路徑的檔案。</dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2010/1/1-2 13:58:09</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd></dd>
</dl>
<hr />
<a name="include_resource"> </a>
<div class="fixedFont">
<b>include_resource</b>(resource, callback, use_write, type, type, use_write)
</div>
<div class="description">
Including other JavaScript/CSS files synchronously.
TODO:
timeout for giving up
use document.createElementNS()
http://headjs.com/#theory
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>resource</b>
</dt>
<dd>path</dd>
<dt>
<span class="light fixedFont">{Function|Object}</span> <b>callback</b>
</dt>
<dd>use_write ? test function{return } : callback function(path)
/ {callback: callback function(path, module), module: module name, global: global object when run callback}</dd>
<dt>
<span class="light fixedFont">{Boolean}</span> <b>use_write</b>
<i>Optional</i>
</dt>
<dd>use document.write() instead of insert a element to <head></dd>
<dt>
<span class="light fixedFont">{Number}</span> <b>type</b>
<i>Optional</i>
</dt>
<dd>1: is a .css file, others: script</dd>
<dt>
<b>type</b>
</dt>
<dd></dd>
<dt>
<b>use_write</b>
</dt>
<dd></dd>
</dl>
<hr />
<a name="inherit"> </a>
<div class="fixedFont">
<b>inherit</b>(parent_module_name, initial_arguments)
</div>
<div class="description">
module 中模擬 inherit 時使用。
TODO:
同步載入功能
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>parent_module_name</b>
</dt>
<dd>欲繼承的 module_name</dd>
<dt>
<b>initial_arguments</b>
</dt>
<dd>繼承時的 initial arguments</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd><a href="http://fillano.blog.ithome.com.tw/post/257/17355" accessdate="2010/1/1 0:6">Fillano's Learning Notes | 物件導向Javascript - 實作繼承的效果</a>,
<a href="http://www.crockford.com/javascript/inheritance.html" accessdate="2010/1/1 0:6">Classical Inheritance in JavaScript</a></dd>
</dl>
<hr />
<a name="initI"> </a>
<div class="fixedFont">
<b>initI</b>(a)
</div>
<div class="description">
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_plugin_old.class template.origin.js.html">old.class template.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>a</b>
</dt>
<dd></dd>
</dl>
<hr />
<a name="initial_env"> </a>
<div class="fixedFont">
<span class="light">{Object}</span>
<b>initial_env</b>(OS_type, reset)
</div>
<div class="description">
Setup environment variables
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>OS_type</b>
<i>Optional</i>
</dt>
<dd>type of OS</dd>
<dt>
<span class="light fixedFont">{Boolean}</span> <b>reset</b>
<i>Optional</i>
</dt>
<dd>reset the environment variables</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Object}</span> environment variables set</dd>
</dl>
<hr />
<a name="is_Array"> </a>
<div class="fixedFont">
<span class="light">{Boolean}</span>
<b>is_Array</b>(v)
</div>
<div class="description">
Test if the value is a native Array.
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>v</b>
</dt>
<dd>value to test</dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2009/12/20 08:38:26</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Boolean}</span> the value is a native Array.</dd>
</dl>
<hr />
<a name="is_debug"> </a>
<div class="fixedFont">
<span class="light">{Boolean, Number}</span>
<b>is_debug</b>(debug_level)
</div>
<div class="description">
Tell if it's now debugging.
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{Integer}</span> <b>debug_level</b>
<i>Optional</i>
</dt>
<dd>if it's now in this debug level.</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Boolean}</span> It's now in specified debug level.</dd>
<dd><span class="light fixedFont">{Number}</span> It's now in what debug level (Integer).</dd>
</dl>
<hr />
<a name="is_Function"> </a>
<div class="fixedFont">
<span class="light">{Boolean}</span>
<b>is_Function</b>(v)
</div>
<div class="description">
Test if the value is a native Function.
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>v</b>
</dt>
<dd>value to test</dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2009/12/20 08:38:26</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Boolean}</span> the value is a native Function.</dd>
</dl>
<hr />
<a name="is_loaded"> </a>
<div class="fixedFont">
<span class="light">{Boolean}</span>
<b>is_loaded</b>(module_name, module_name)
</div>
<div class="description">
判斷 module 是否存在,
TODO
以及是否破損。
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>module_name</b>
</dt>
<dd>module name</dd>
<dt>
<span class="light fixedFont">{Array}</span> <b>module_name</b>
</dt>
<dd>module name list</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Boolean}</span> 所指定 module 是否全部存在以及良好。</dd>
</dl>
<hr />
<a name="is_module_pattern"> </a>
<div class="fixedFont">
<span class="light">{Boolean}</span>
<b>is_module_pattern</b>(test_string)
</div>
<div class="description">
test 是否符合 module pattern.
TODO: improve
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>test_string</b>
</dt>
<dd>string to test</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Boolean}</span> 是否符合 module pattern</dd>
</dl>
<hr />
<a name="is_type"> </a>
<div class="fixedFont">
<span class="light">{Boolean, String, undefined}</span>
<b>is_type</b>(value, want_type, get_Class)
</div>
<div class="description">
判斷為何種 type。主要用在 Error, DOMException 等 native object 之判別。
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<pre class="code">CeL.is_type(value_to_test, 'Array');</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>value</b>
</dt>
<dd>variable or class instance to test</dd>
<dt>
<span class="light fixedFont">{String}</span> <b>want_type</b>
<i>Optional</i>
</dt>
<dd>type to compare: number, string, boolean, undefined, object, function</dd>
<dt>
<span class="light fixedFont">{Boolean}</span> <b>get_Class</b>
<i>Optional</i>
</dt>
<dd>get the class name of a class(function) instance.</dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2009/12/14 19:50:14</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Boolean}</span> The type is matched.</dd>
<dd><span class="light fixedFont">{String}</span> The type of value</dd>
<dd><span class="light fixedFont">{undefined}</span> error occurred</dd>
</dl>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd><a href="http://lifesinger.org/blog/2009/02/javascript-type-check-2/" accessdate="2009/12/6 19:10">JavaScript类型检测小结 - 岁月如歌</a><br/>
<a href="http://thinkweb2.com/projects/prototype/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/" accessdate="2009/12/6 19:10">Perfection kills &raquo; `instanceof` considered harmful (or how to write a robust `isArray`)</a></dd>
</dl>
<hr />
<a name="library_loader_by_registry"> </a>
<div class="fixedFont">
<b>library_loader_by_registry</b>()
</div>
<div class="description">
for 引用 include library 自 registry 中的 path
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_data_code_reorganize.origin.js.html">reorganize.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2009/11/25 22:59:02</dd>
</dl>
</dl>
<hr />
<a name="mutual_division"> </a>
<div class="fixedFont">
<span class="light">{Array}</span>
<b>mutual_division</b>(n1, n2, times)
</div>
<div class="description">
輾轉相除 n1/n2 或 小數 n1/1 轉成 整數/整數
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_data_math.origin.js.html">math.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{Number}</span> <b>n1</b>
</dt>
<dd>number 1</dd>
<dt>
<span class="light fixedFont">{Number}</span> <b>n2</b>
<i>Optional</i>
</dt>
<dd>number 2</dd>
<dt>
<span class="light fixedFont">{Number}</span> <b>times</b>
</dt>
<dd>max 次數, 1,2,..</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Array}</span> 連分數序列 ** 負數視 _.mutual_division.done 而定!</dd>
</dl>
<hr />
<a name="name"> </a>
<div class="fixedFont">
<b>name</b>()
</div>
<div class="description">
translate {String} code_for_including to function
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<hr />
<a name="new_node"> </a>
<div class="fixedFont">
<span class="light">{HTMLElement}</span>
<b>new_node</b>(nodes, layer)
</div>
<div class="description">
創建新的 DOM 節點(node)。
createNode() 的功能補充加強版。
TODO: 分割功能(set_attrib, add_child, ..), 簡化
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_interact_DOM.origin.js.html">DOM.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{Object|Array}</span> <b>nodes</b>
</dt>
<dd>node structure</dd>
<dt>
<span class="light fixedFont">{String|Array|HTMLElement}</span> <b>layer</b>
<i>Optional</i>
</dt>
<dd>where to layer this node. e.g., parent node</dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2010/6/21 13:45:02</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{HTMLElement}</span> new node created</dd>
</dl>
<hr />
<a name="object_tester"> </a>
<div class="fixedFont">
<span class="light">{Function}</span>
<b>object_tester</b>(want_type, toString_reference)
</div>
<div class="description">
get a type test function
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<pre class="code">// 大量驗證時,推薦另外在本身 scope 中造出捷徑:
this.OtS = Object.prototype.toString;
var is_Array = CeL.object_tester('Array', 'OtS');
// test
if(is_Array(value))
// it's really a native Array
;</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>want_type</b>
</dt>
<dd>object type to compare</dd>
<dt>
<span class="light fixedFont">{String}</span> <b>toString_reference</b>
<i>Optional</i>
</dt>
<dd>a reference name to Object.prototype.toString</dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2009/12/20 08:38:26</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Function}</span> type test function</dd>
</dl>
<hr />
<a name="open_template"> </a>
<div class="fixedFont">
<b>open_template</b>(FN, format, io_mode)
</div>
<div class="description">
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_application_OS_Windows_file.origin.js.html">file.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>FN</b>
</dt>
<dd></dd>
<dt>
<b>format</b>
</dt>
<dd></dd>
<dt>
<b>io_mode</b>
</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd></dd>
</dl>
<hr />
<a name="parse_require"> </a>
<div class="fixedFont">
<span class="light">{Object, Number}</span>
<b>parse_require</b>(dependency_list, separator, base_require)
</div>
<div class="description">
解析 dependency list 以獲得所需之 module/path/variable name..
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{Array|String}</span> <b>dependency_list</b>
</dt>
<dd><p>
list of dependency function/module/variable required. module 須以
CeL.env.module_name_separator ('.') 結尾。若輸入 String則以 separator 或 '|' 分割。
</p></dd>
<dt>
<b>separator</b>
</dt>
<dd></dd>
<dt>
<b>base_require</b>
</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2011/8/6 22:10:57</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Object}</span> result { variable: {variable_name: full_name}, module:
{module name: loaded or not}, module_to_load: [], URL: {}}</dd>
<dd><span class="light fixedFont">{Number}</span> error_no</dd>
</dl>
<hr />
<a name="pv"> </a>
<div class="fixedFont">
<b>pv</b>(i, d, k)
</div>
<div class="description">
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_plugin_old.class template.origin.js.html">old.class template.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>i</b>
</dt>
<dd></dd>
<dt>
<b>d</b>
</dt>
<dd></dd>
<dt>
<b>k</b>
</dt>
<dd></dd>
</dl>
<hr />
<a name="replace_function"> </a>
<div class="fixedFont">
<b>replace_function</b>(name_space, function_name, new_function)
</div>
<div class="description">
workaround.
把 name_space 下的 function_name (name_space[function_name]) 換成 new_function。
for Lazy Function Definition Pattern.
惰性求值Lazy Evaluation又稱懶惰求值、懶漢求值
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<pre class="code">library_namespace.replace_function(_, 'to_SI_prefix', to_SI_prefix);</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>name_space</b>
</dt>
<dd>in which name-space</dd>
<dt>
<span class="light fixedFont">{String}</span> <b>function_name</b>
</dt>
<dd>name_space.function_name</dd>
<dt>
<span class="light fixedFont">{Function}</span> <b>new_function</b>
</dt>
<dd>replace to what function</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd>new_function</dd>
</dl>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd>http://realazy.org/blog/2007/08/16/lazy-function-definition-pattern/,
http://peter.michaux.ca/article/3556</dd>
</dl>
<hr />
<a name="request_item_maybe_module"> </a>
<div class="fixedFont">
<span class="light">{Boolean}</span>
<b>request_item_maybe_module</b>(resource_string)
</div>
<div class="description">
test function.request 的項目是否為 module.
TODO
現在還有很大問題!
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>resource_string</b>
</dt>
<dd>resource to test</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Boolean}</span> resource 是否為 module (true: is module, false: is URL?)</dd>
</dl>
<hr />
<a name="require_netscape_privilege"> </a>
<div class="fixedFont">
<b>require_netscape_privilege</b>(privilege, callback|[callback,arguments])
</div>
<div class="description">
Ask privilege in mozilla projects: Firefox 2, 3.
get_file() 遇到需要提高權限時使用。
enablePrivilege 似乎只能在執行的 function 本身或 caller 呼叫才有效果,跳出函數即無效,不能 cache因此提供 callback。
就算按下「記住此決定」,重開瀏覽器後需要再重新授權。
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String|Error}</span> <b>privilege</b>
</dt>
<dd>privilege that asked 或因權限不足導致的 Error</dd>
<dt>
<span class="light fixedFont">{Function|Array}</span> <b>callback|[callback,arguments]</b>
</dt>
<dd>Run this callback if getting the privilege. If it's not a function but a number(經過幾層/loop層數), detect if there's a loop or run the caller.</dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2010/1/2 00:40:42</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Throws:</dt>
<dt>
<b></b>
</dt>
<dd>error</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd>OK / the return of callback</dd>
</dl>
<hr />
<a name="set_debug"> </a>
<div class="fixedFont">
<span class="light">{Integer}</span>
<b>set_debug</b>(debug_level)
</div>
<div class="description">
Set debugging level
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{Integer}</span> <b>debug_level</b>
<i>Optional</i>
</dt>
<dd>The debugging level to set.</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Number}</span> debugging level now</dd>
</dl>
<hr />
<a name="set_run"> </a>
<div class="fixedFont">
<b>set_run</b>(running)
</div>
<div class="description">
control/setup source codes to run.
基本上使用同步(synchronous)的方式,除非所需資源已經載入,或是有辦法以 XMLHttpRequest 取得資源。
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<pre class="code">sr = CeL.set_run;
sr('module_name', function(){
// ...
});
TODO:
sr('module_name', function(){
CeL.import('module_name', {module_function_1:0});
CeL.module_function_1('11') === module_function_1('11');
var instance=new CeL.module_name.module_class_1;
instance.print(112);
});</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>running</b>
</dt>
<dd>sequence: list of
{Function} function to run/欲執行之 function → change .to_run
| {Integer} timeout (ms): 僅能保證上次 function 執行至此次 function 一定會等超過這段時間 → change .start_time, .timeout
| {String} library module name to import → change .to_load_module, .module_count
| {String} URL/file path (image/JavaScript files/CSS) → change .to_load_path, .path_count
| {Array} 另一組同時 loading set: [{String|Function|Integer}, ..] → 拆開全部當作同時 loading
| TODO: {Object} loading with additional config</dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2011/8/4 22:31:47</dd>
</dl>
</dl>
<hr />
<a name="setup_module"> </a>
<div class="fixedFont">
<span class="light">{, Object, }</span>
<b>setup_module</b>(module_name, code_for_including, parent_module_name)
</div>
<div class="description">
載入 module。
<p>
本函數會預先準備好下層 module 定義時的環境,但請盡量先 call 上層 name-space
再定義下層的,否則可能會出現問題,如 memory leak 等。
</p>
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>module_name</b>
<i>Optional</i>
</dt>
<dd><p>
module name to register: 本 module 之 name(id)
</p></dd>
<dt>
<span class="light fixedFont">{Function}</span> <b>code_for_including</b>
</dt>
<dd><p>
若欲 include 整個 module 時,需囊括之 code。
</p>
code_for_including(
{Function} library_namespace: namespace of library,
load_arguments: 呼叫時之 argument(s)
)</dd>
<dt>
<b>parent_module_name</b>
</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd>null
<p>
invalid module
</p></dd>
<dd><span class="light fixedFont">{Object}</span> <p>
下層 module 之 name-space
</p></dd>
<dd>undefined
<p>
something error, e.g., 未成功 loadcode_for_including
return null, ..
</p></dd>
</dl>
<hr />
<a name="simplify_path"> </a>
<div class="fixedFont">
<span class="light">{String}</span>
<b>simplify_path</b>(path)
</div>
<div class="description">
轉化所有 /., /.., //
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>path</b>
</dt>
<dd>欲轉化之 path</dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2009/11/23 22:32:52</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{String}</span> path</dd>
</dl>
<hr />
<a name="split_module_name"> </a>
<div class="fixedFont">
<span class="light">{Array}</span>
<b>split_module_name</b>(module_name)
</div>
<div class="description">
將輸入的 string 分割成各 module 單元。<br/>
need environment_adapter()<br/>
** 並沒有對 module 做完善的審核!
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>module_name</b>
</dt>
<dd>module name</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Array}</span> module unit array</dd>
</dl>
<hr />
<a name="to_module_name"> </a>
<div class="fixedFont">
<span class="light">{String}</span>
<b>to_module_name</b>(module, separator)
</div>
<div class="description">
取得 module 之 name。以 library name 起始。
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>module</b>
</dt>
<dd></dd>
<dt>
<b>separator</b>
</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{String}</span> module name start with library name</dd>
</dl>
<hr />
<a name="to_rational_number"> </a>
<div class="fixedFont">
<b>to_rational_number</b>(number, rate, max_no)
</div>
<div class="description">
The best rational approximation. 取得值最接近之有理數 (use 連分數 continued fraction), 取近似值.
c.f., 調日法
在分子或分母小於下一個漸進分數的分數中,其值是最接近精確值的近似值。
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_data_math.origin.js.html">math.origin.js</a>.
</div>
<pre class="code">to_rational_number(4088/783)</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{Number}</span> <b>number</b>
</dt>
<dd>number</dd>
<dt>
<span class="light fixedFont">{Number}</span> <b>rate</b>
<i>Optional</i>
</dt>
<dd>比例在 rate 以上</dd>
<dt>
<span class="light fixedFont">{Number}</span> <b>max_no</b>
<i>Optional</i>
</dt>
<dd>最多取至序列第 max_no 個
TODO : 並小於 l: limit</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd>[分子, 分母, 誤差]</dd>
</dl>
<dl class="detailList">
<dt class="heading">Requires:</dt>
<dd>mutual_division,continued_fraction</dd>
</dl>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd>http://en.wikipedia.org/wiki/Continued_fraction#Best_to_rational_numbers</dd>
</dl>
<hr />
<a name="to_RegExp_pattern"> </a>
<div class="fixedFont">
<span class="light">{RegExp}</span>
<b>to_RegExp_pattern</b>(pattern, RegExp_flag, escape_pattern)
</div>
<div class="description">
String pattern (e.g., "/a+/g") to RegExp pattern.
qq// in perl.
String.prototype.toRegExp = function(f) { return to_RegExp_pattern(this.valueOf(), f); };
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_data_native.origin.js.html">native.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>pattern</b>
</dt>
<dd>pattern text</dd>
<dt>
<span class="light fixedFont">{Boolean|String}</span> <b>RegExp_flag</b>
<i>Optional</i>
</dt>
<dd>flags when need to return RegExp object</dd>
<dt>
<span class="light fixedFont">{RegExp}</span> <b>escape_pattern</b>
<i>Optional</i>
</dt>
<dd>char pattern need to escape</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{RegExp}</span> RegExp object</dd>
</dl>
<hr />
<a name="use"> </a>
<div class="fixedFont">
<span class="light">{Error, , undefined}</span>
<b>use</b>(module, callback, extend_to, force)
</div>
<div class="description">
Include specified module.<br/>
會先嘗試以依序載入(asynchronous)的方式取得 module。
無法以 Ajax 載入時,若未設定 callback會回傳錯誤。若設定 callback會以同步(synchronous)的方式載入 module於載入完成執行 callback。
若因為 browser 安全性設定而無法取得則會回傳 -1表示將以同步的方式載入 module。因為 module 尚未載入,在此階段尚無法判別此 module 所需之 dependency list。此 list 會被作為引數傳入 callback。
注意:以下的 code 中CeL.warn 不一定會被執行(可能會、可能不會),因為執行時 log 可能尚未被 include。<br/>
此時應該改用 CeL.set_run('application.log', callback);<br/>
code in head/script/:
<code>
CeL.use('code.log');
CeL.warn('WARNING message');
</code>
** 在指定 callback 時 name_space 無效!
** 預設會 extend 到 library 本身之下!
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<pre class="code">CeL.use('code.log', function(){..});
CeL.use(['code.log', 'code.debug']);</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{String}</span> <b>module</b>
</dt>
<dd>module name</dd>
<dt>
<span class="light fixedFont">{Function}</span> <b>callback</b>
<i>Optional</i>
</dt>
<dd>callback function | [callback, 進度改變時之 function (TODO)]</dd>
<dt>
<span class="light fixedFont">{Object|Boolean}</span> <b>extend_to</b>
<i>Optional</i>
</dt>
<dd>extend to which name-space<br/>
false: just load, don't extend to library name-space<br/>
this: extend to global<br/>
object: extend to specified name-space that you can use [name_space]._func_ to run it<br/>
(others, including undefined): extend to root of this library. e.g., call CeL._function_name_ and we can get the specified function.</dd>
<dt>
<b>force</b>
</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Error}</span> </dd>
<dd>-1 will execute callback after load, 不代表 load module 了!</dd>
<dd><span class="light fixedFont">{undefined}</span> no error, OK</dd>
</dl>
<hr />
<a name="use_API"> </a>
<div class="fixedFont">
<b>use_API</b>(API, callback)
</div>
<div class="description">
自動挑選 domain
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_data_code_API.origin.js.html">API.origin.js</a>.
</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<b>API</b>
</dt>
<dd>API name</dd>
<dt>
<b>callback</b>
</dt>
<dd>null: do NOT load</dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2010/6/20 22:12:23</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd>[ API url, API key ]</dd>
</dl>
<dl class="detailList">
<dt class="heading">See:</dt>
<dd></dd>
</dl>
<hr />
<a name="use_function"> </a>
<div class="fixedFont">
<span class="light">{Number}</span>
<b>use_function</b>(name_space, dependency_list, extend_to, no_strict)
</div>
<div class="description">
module 中需要 include function/module/variable 時設定 local variables 使用。<br/>
本函數將把所需 function include 至當前 namespace 下。
TODO: 輸入 function name 即可
<br />
<i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_ce.origin.js.html">ce.origin.js</a>.
</div>
<pre class="code">
// requires (inside module)
// 事先定義 @ 'use strict';
var split_String_to_Object;
// 之所以需要使用 eval 是因為要 extend 至當前 namespace 下。
// 若無法 load CeL.data將會 throw
eval(library_namespace.use_function(this, 'data.split_String_to_Object'));
// use it
split_String_to_Object();
// 不用 eval 的方法 1: function 預設都會 extend 至當前 library_namespace 下。
library_namespace.use_function(this, 'data.split_String_to_Object');
library_namespace.use_function(this, 'data.split_String_to_Object', false);
// 若無法 load CeL.data將會 throw
// use it
library_namespace.split_String_to_Object();
// 不用 eval 的方法 2: 設定 extend_to
var o={};
// 若無法 load CeL.data將會 throw
library_namespace.use_function(this, 'data.split_String_to_Object', o);
// use it
o.split_String_to_Object();</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt>
<span class="light fixedFont">{Function|Object}</span> <b>name_space</b>
</dt>
<dd>module name-space</dd>
<dt>
<span class="light fixedFont">{Array|String}</span> <b>dependency_list</b>
</dt>
<dd>list of dependency function/module/variable required. module 須以 '.' 結尾。若輸入 String則以 ',' 分割。</dd>
<dt>
<span class="light fixedFont">{Function|Object}</span> <b>extend_to</b>
<i>Optional</i>
</dt>
<dd>若設定將把 variable extend 至 extend_to</dd>
<dt>
<b>no_strict</b>
</dt>
<dd></dd>
</dl>
<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>2009/12/26 02:36:31
2009/12/31 22:21:23 add 類似 'data.' 的形式,為 module。
2010/6/14 22:58:18 避免相互 require</dd>
</dl>
</dl>
<dl class="detailList">
<dt class="heading">Throws:</dt>
<dt>
<span class="light fixedFont">{Error}</span> <b></b>
</dt>
<dd>有些 module 尚未載入。</dd>
</dl>
<dl class="detailList">
<dt class="heading">Returns:</dt>
<dd><span class="light fixedFont">{Number}</span> error code
1: can't parse dependency_list</dd>
</dl>
<!-- ============================== event details ========================= -->
<hr />
</div>
<!-- ============================== footer ================================= -->
<div class="fineprint" style="clear:both">
Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.4.0 on Sat Aug 20 2011 15:07:28 GMT+0800 (CST)
</div>
</body>
</html>