【文件属性】:
文件名称:ns:JavaScript 命名空间工具
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-08 19:31:04
JavaScript
纳秒
JavaScript 命名空间工具
特征
ns 提供了两个简单但有用的功能:
1. 使用自动嵌套初始化轻松命名空间:
// Assigns the function to window.MyApp.Security.authenticate.
// NOTE: window.MyApp may not be initialised yet.
ns ( "MyApp.Security.authenticate" , function ( username , password ) { /* .. */ } ) ;
// Assigns the object to window.MyApp.Security.credentials.
// NOTE: Existing assignments within the namespace are kept.
ns ( "MyApp.Sec
【文件预览】:
ns-master
----.travis.yml(95B)
----test()
--------test-case.js(2KB)
----LICENSE(1KB)
----src()
--------ns.js(3KB)
----.gitignore(26B)
----circle.yml(130B)
----README.md(2KB)
----bower.json(460B)