Merge pull request #1 from wangyateng/wangyateng-patch-1

update layer.js
pull/42/head
wangyateng 2017-02-24 14:19:27 +08:00 committed by GitHub
commit 9b7b93f4b3
1 changed files with 2 additions and 2 deletions

View File

@ -1227,7 +1227,7 @@ window.layui && layui.define ? (
exports('layer', layer);
})
) : (
typeof define === 'function' ? define(['jquery'], function(){ //requirejs加载
(typeof define === 'function' && define.amd) ? define(['jquery'], function(){ //requirejs加载
ready.run(window.jQuery);
return layer;
}) : function(){ //普通script标签加载