09 2018 档案

摘要:vue-preview点击一张图片,预览这种大图 https://github.com/LS1231/vue-preview有使用详情 1. 安装 $ npm install vue-preview --save 2. 在webpack.config.js指定的入口文件中 3. webpack.co 阅读全文
posted @ 2018-09-28 13:35 IT记录 阅读(238) 评论(0) 推荐(0)
摘要:官网 http://momentjs.cn/ 1. 第一步:选择一种方式进行安装 moment包 2.第二步:在webpack.config.js定义的入口文件中导入下载moment包 import momentjs from 'moment' ; 3.第三步:过滤器方法体重写代码 过滤器方法体:V 阅读全文
posted @ 2018-09-27 14:13 IT记录 阅读(261) 评论(0) 推荐(0)
摘要:1. 到github上下载MUI文件 https://github.com/dcloudio/mui 2. 拷贝下载文件的dist目录中的三个文件 到你自己创建的目录(如static中创建文件夹mui,存放拷贝的文件) 3.在webpack.config.js指定的entry文件(02-mian.j 阅读全文
posted @ 2018-09-26 15:53 IT记录 阅读(10005) 评论(0) 推荐(0)
摘要:1. mint-ui 网址 http://mint-ui.github.io/#!/zh-cn $npm install mint-ui --save (若没有安装vue-loader、vue-template-compiler,安装) 2.webpack.config.js定义的指向entry文件 阅读全文
posted @ 2018-09-26 15:13 IT记录 阅读(7545) 评论(0) 推荐(0)
摘要:1. 第一步:创建目录文件夹 2. 第二步:下载依赖包package.json $ npm install (这里的依赖包是常用的一些webpack依赖包,其中有些在此工程中没用上,可以删除) 3. 第三步:配置webpack.config.js文件 4. 第四步:创建template模板文件 5. 阅读全文
posted @ 2018-09-26 11:52 IT记录 阅读(243) 评论(0) 推荐(0)
摘要:目录 1. 数组方法 join() reverse() sort() concat() :a=[''ant','cat'];a.concat(4,3); 结果为:[ant,cat,4 ,3] slice(开始位置,结束位置—可选):索引从0开始;返回本身的值。 splice() push() 、po 阅读全文
posted @ 2018-09-17 14:52 IT记录 阅读(534) 评论(0) 推荐(0)
摘要:1.url地址片段获取 eg:获取 http://192.168.1.123:8081/components/qwe.html 地址的 http://192.168.1.123:8081/ 获取原因:weex中页面的跳转需要绝对地址,为方便地址跳转,所以建立一个函数 步骤:建立一个js文件,包含以下 阅读全文
posted @ 2018-09-17 14:02 IT记录 阅读(1204) 评论(0) 推荐(0)