摘要: onlyNum.js main.js 在component中只需要在input上加上v-limitNum就能生效。 阅读全文
posted @ 2018-03-06 13:50 浮缠 阅读(1056) 评论(0) 推荐(0)
摘要: 使用例子: 添加: 在window.location.href后加上a=1和b=2。 修改之后将会变成xxxxxxxxxx?a=1&b=2。 获取参数: 阅读全文
posted @ 2018-03-05 16:43 浮缠 阅读(388) 评论(0) 推荐(0)
摘要: postfile方法 阅读全文
posted @ 2018-02-28 10:29 浮缠 阅读(556) 评论(0) 推荐(0)
摘要: 一、绝对定位 二、translate 三、flex display: flex; justify-content: center; align-items: center; display: flex; justify-content: center; align-items: center; 阅读全文
posted @ 2018-02-26 13:31 浮缠 阅读(255) 评论(0) 推荐(0)
摘要: toast.js 如何使用? 在main.js中 import Vue from 'vue' import Toast from './toast' Vue.use(Toast); Vue.use(Toast); 在component中 阅读全文
posted @ 2018-02-26 09:26 浮缠 阅读(7793) 评论(1) 推荐(0)
摘要: This article assuming you created your project using webpack template. vue init webpack <PROJECT_NAME> Open package.json and observe the scripts secti 阅读全文
posted @ 2017-12-19 15:04 浮缠 阅读(418) 评论(0) 推荐(0)
摘要: NPM是随同NodeJS一起安装的包管理工具,能解决NodeJS代码部署上的很多问题,常见的使用场景有以下几种: 允许用户从NPM服务器下载别人编写的三方包到本地使用。 允许用户从NPM服务器下载并安装别人编写的命令行程序到本地使用。 允许用户将自己编写的包或命令行程序上传到NPM服务器供别人使用。 阅读全文
posted @ 2017-12-06 17:40 浮缠 阅读(198) 评论(0) 推荐(0)
摘要: 当已知要加载图片时方能使用,提升网页的流畅性。 阅读全文
posted @ 2017-12-01 16:24 浮缠 阅读(270) 评论(0) 推荐(0)
摘要: 我的时间 var myTime = "2015-12-31 12:10:21"; 正常写法 var newTime = new Date(myTime); safari兼容写法 var safariTime = new Date(myTime.substr(0,10)+"T"+myTime.subs 阅读全文
posted @ 2017-11-28 14:51 浮缠 阅读(640) 评论(0) 推荐(0)