Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/387.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
javascript绑定问题_Javascript_Jquery_Bundle - Fatal编程技术网

javascript绑定问题

javascript绑定问题,javascript,jquery,bundle,Javascript,Jquery,Bundle,我正在使用捆绑js。我可以最小化js文件的常规功能。但是我在一个使用“exports”的js文件中遇到了困难,这是函数语法的问题 (function fnName (exports) { exports.generateUUID = function () {//other codes} }(typeof exports === 'undefined' ? this.fnName = {} : exports)); 我认为,由于这种语法,我面临着这个问题。谁能帮我解决这个问题

我正在使用捆绑js。我可以最小化js文件的常规功能。但是我在一个使用“exports”的js文件中遇到了困难,这是函数语法的问题

   (function fnName (exports) {

    exports.generateUUID = function () {//other codes}

}(typeof exports === 'undefined' ? this.fnName = {} : exports));

我认为,由于这种语法,我面临着这个问题。谁能帮我解决这个问题。我还需要捆绑此文件

很难知道您想要什么。也许这仅仅是因为你的评论


///othercode///code>转换为
///othercode>

否,实际上我需要捆绑(意味着最小化)一个文件。因为这是一种语法。绑定没有发生。我正在使用bundle js