1 全局注册组件
建一个 js 文件, 注册全局组件, 并且暴露出去
然后再在 main.js 中引入
在页面就可以直接使用了
2 全局注册过滤器
建立文件, 包含所有过滤器方法, export 出去
在 main.js 中引入, 并注册全局过滤器
在页面中直接使用
3 定义全局方法
建一个文件注册全局方法
使用 exports 可能会报错,应该将 .babelrc 文件中的 "modules": false 去掉 modules组止了文件的转换
在 main.js 中引入
页面中直接调用
http://market.szonline.net/amaz/10272.html
http://market.szonline.net/amaz/10271.html
http://www.yjzmhome.cn/
http://market.szonline.net/amaz/10270.html
http://market.szonline.net/amaz/10269.html
http://market.szonline.net/amaz/10268.html
http://market.szonline.net/amaz/10267.html
http://market.szonline.net/amaz/10266.html
http://market.szonline.net/amaz/10265.html
http://market.szonline.net/amaz/10264.html
http://market.szonline.net/amaz/10263.html
http://market.szonline.net/amaz/10262.html
http://market.szonline.net/amaz/10261.html
http://market.szonline.net/amaz/10260.html
http://market.szonline.net/amaz/10259.html
http://market.szonline.net/amaz/10258.html
http://market.szonline.net/amaz/10257.html
http://market.szonline.net/amaz/10256.html
http://market.szonline.net/amaz/10255.html
http://market.szonline.net/amaz/10254.html
http://market.szonline.net/amaz/10253.html
http://market.szonline.net/amaz/10252.html
http://market.szonline.net/amaz/10251.html
http://market.szonline.net/amaz/10250.html
http://market.szonline.net/amaz/10249.html
http://market.szonline.net/amaz/10248.html
http://market.szonline.net/amaz/10247.html
http://market.szonline.net/amaz/10246.html
http://market.szonline.net/amaz/10245.html
http://market.szonline.net/amaz/10244.html
http://market.szonline.net/amaz/10243.html
http://market.szonline.net/amaz/10242.html
http://market.szonline.net/amaz/10241.html
http://market.szonline.net/amaz/10240.html
http://market.szonline.net/amaz/10239.html
http://market.szonline.net/amaz/10238.html
http://market.szonline.net/amaz/10237.html
http://market.szonline.net/amaz/10236.html
http://market.szonline.net/amaz/10235.html
http://market.szonline.net/amaz/10234.html
http://market.szonline.net/amaz/10233.html
http://market.szonline.net/amaz/10232.html
http://market.szonline.net/amaz/10231.html
http://market.szonline.net/amaz/10230.html
http://market.szonline.net/amaz/10229.html
http://market.szonline.net/amaz/10228.html
http://market.szonline.net/amaz/10227.html
http://market.szonline.net/amaz/10226.html
http://market.szonline.net/amaz/10225.html
http://market.szonline.net/amaz/10224.html
http://market.szonline.net/amaz/10223.html
http://market.szonline.net/amaz/10222.html
http://market.szonline.net/amaz/10221.html
http://market.szonline.net/amaz/10220.html
http://market.szonline.net/amaz/10219.html
http://market.szonline.net/amaz/10218.html
http://market.szonline.net/amaz/10217.html
http://market.szonline.net/amaz/10216.html
http://market.szonline.net/amaz/10215.html
http://market.szonline.net/amaz/10214.html
http://market.szonline.net/amaz/10213.html