米拓引入或者调用外部文件时:要在own.js中设置

2018-06-22 22:53:23 admin 0

引入或者调用外部文件时:要在own.js中设置



[javascript] view plain copy
  1. 引入的js文件要用define(function(require, exports, module) {  包裹  )};  

  2.   

  3. am-img-responsive   

  4. amazeUI图片自动响应  



[javascript] view plain copy
  1. require('tem/js/amaze/amazeui.css');  

  2.    

  3.    

  4.       

  5.       

  6.     require.async('tem/js/dahua/jquery.SuperSlide.2.1.1',function(){  

  7.         jQuery(".slideTxtBox").slide({});  

  8.         jQuery(".slideBox").slide({mainCell:".bd ul",autoPlay:true});  

  9.     });  

  10.       

  11.     require.async('tem/js/quanping/flickerplate.min');  

  12.     require.async('tem/js/quanping/jquery-finger-v0.1.0.min');  

  13.     require.async('tem/js/quanping/modernizr-custom-v2.7.1.min');  

  14.     require.async('tem/js/quanping/flickerplate.css');  

  15.       

  16.     require.async('tem/js/fullPage/jquery.fullPage.css');  

  17.         require.async('tem/js/fullPage/jquery-1.8.3.min');  

  18.     require.async('tem/js/fullPage/jquery.fullPage.min',function(){  

  19.         $('#dowebok').fullpage({  

  20.             sectionsColor: ['#1bbc9b''#4BBFC3''#7BAABE''#f90'],  

  21.             'navigation'true,  

  22.         });  

  23.     });  

  24.   

  25.   

  26.   

  27.   

  28.   

  29.   

  30.   

  31. 引入的js文件要用define(function(require, exports, module) {  包裹  )};  

  32.   

  33. am-img-responsive   

  34. amazeUI图片自动响应