javascript - fis3 build module loading call problem, index.js cannot load the module zepto.js, and there is no error alarm.
大家讲道理
大家讲道理 2017-05-16 13:45:38
0
1
629

I am a complete novice about modular programming, I hope you can give me some advice
In my index.html, index.js needs to call zepto.js in the component component, but it cannot be called normally, and there is no alarm. mistake;


index.js source code is as follows:

After publishing to the test machine using fis3, index.js becomes Now:

In this code define('static/index/index', function(...){}, this function wraps all the source code content, so it cannot run normally. If you remove the outer function of this define, it can It works normally. But the question is why it is automatically generated, and how should I write index.js so that there will be no problems;

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!