摘要: 在使用sea.js的如下写法引用jQuery文件时, 会报错,提示$ is not a function; 原因在于jQuery是默认支持AMD规范的,而sea.js是遵循CMD规范进行加载;这两种规范对外提供模块时的定义方法不一样: jQuery对外提供模块时默认支持的是AMD规范,其写法为: 因 阅读全文
posted @ 2016-09-08 11:54 hello八戒 阅读(5563) 评论(0) 推荐(0) 编辑