摘要: //html准备 <div id="app"> <label for="userName">用户名:</label> <input type="text" id="userName" v-model="userName"> <span v-show="isError">用户名长度为 6~12 个字符 阅读全文
posted @ 2018-08-26 16:55 cecelingmeng 阅读(538) 评论(0) 推荐(0) 编辑
摘要: //html准备 <div id="app"> <label for="userName">用户名:</label> <input type="text" id="userName" v-model="userName"> <span v-show="isError">用户名长度为 6~12 个字符 阅读全文
posted @ 2018-08-26 16:53 cecelingmeng 阅读(663) 评论(0) 推荐(0) 编辑
摘要: // 安装 moment npm i moment // 引入moment <script src="./vue.js"></script> <script src="./node_modules/moment/moment.js"></script> // html里使用 <div id="app 阅读全文
posted @ 2018-08-26 16:38 cecelingmeng 阅读(158) 评论(0) 推荐(0) 编辑
摘要: <style> [v-cloak]{ display: none; } </style> <body> <div id="app"> <h1 v-cloak>{{ msg }}</h1> </div> 过程: 1 通过 CSS样式将 带有 v-cloak 属性的元素隐藏 2 这样,我们就无法看到 { 阅读全文
posted @ 2018-08-26 16:07 cecelingmeng 阅读(144) 评论(0) 推荐(0) 编辑