摘要:
摘自《你不知道的js》这本书,第五章第五节:现代模块机制。 感觉这个很牛很高大上,但是不能完全看懂,抄下来,慢慢品读理解: var MyModules = ( function Manager(){ var modules = {}; function define(name,deps,impl){ 阅读全文
posted @ 2024-11-04 14:11
充实地生活着
阅读(6)
评论(0)
推荐(0)
摘要:
var foo = ( function CoolModule(){ var something = 'cool'; var another = [1,2,3]; function doSomething() { console.log(something); } function doAnothe 阅读全文
posted @ 2024-11-04 11:43
充实地生活着
阅读(9)
评论(0)
推荐(0)

浙公网安备 33010602011771号