seaJS常用語法

2022-03-23 17:48:25 字數 1022 閱讀 6608

1

.seajs.config

seajs.config(,

//設定別名,方便呼叫

alias:

});

2.seajs.use

用來在頁面中載入乙個或多個模組

//載入乙個模組

seajs.use('

./a'

);

//載入乙個模組,在載入完成時,執行**

seajs.use('

./a'

, function(a) );

//載入多個模組,在載入完成時,執行**

seajs.use(['

./a', '

./b'

], function(a, b) );

3.define

用來定義模組。

define(function(require, exports, module) );

4.require

用來獲取指定模組的介面

define(function(require) );

5.require.async

用來在模組內部非同步載入乙個或多個模組

define(function(require) );

//非同步載入多個模組,在載入完成時執行**

require.async(['

./c', '

./d'

], function(c, d) );

});

6.exports

用來在模組內部對外提供介面

define(function(require, exports) ;

});

7.module.exports

用來在模組內部對外提供介面

define(function(require, exports, module) ;

};

});

mysql常用語法 MySQL常用語法

更新資料 update 表名 set 健名 更改的值 where 建 刪除資料 delete from 表名 where 索引 create index 索引名稱 on 表名 鍵名 建立試圖 create view 檢視名 鍵,鍵 as select matchno,abs won lost fro...

mysql基本常用語法 mysql 常用語法

1.1.開啟 service mysql start 1.2.關閉 service mysql stop 1.3.重啟 service mysql restart 2.1.密碼明文 語法 mysql u使用者名稱 p使用者密碼 舉例 mysql uroot p123456 2.2.密碼密文 語法 m...

wiki常用語法

公司啟用了streber執行部分專案管理工作。streber基於wiki系統建立。在streber中,我們可以建立專案 project 可以為專案建立milestone task等等。與其他專案管理系統一樣,可以為每乙個task分配資源,指定執行時間。由於streber基於wiki組建,具備了wik...