摘要:
参考代码 html <van-field id="valueInput" v-model="value" v-Alphabet placeholder="请输入"/> js import Vue from "vue"; //自定义指令 ,只能输入字母和数字 Vue.directive('Alphab 阅读全文
posted @ 2020-11-05 13:09
松果果
阅读(7963)
评论(0)
推荐(0)
|
摘要:
参考代码 html <van-field id="valueInput" v-model="value" v-Alphabet placeholder="请输入"/> js import Vue from "vue"; //自定义指令 ,只能输入字母和数字 Vue.directive('Alphab 阅读全文
posted @ 2020-11-05 13:09
松果果
阅读(7963)
评论(0)
推荐(0)
摘要:
使用场景 项目的某些页面需要单独打开 页面加载完成之前就需要展示标题 标题不能在index.html写死,因为各页面标题不一样 用法 vue的index.html文件中修改 <!DOCTYPE html> <html lang="en"> <head> <!--这里省略部分代码--> <title> 阅读全文
posted @ 2020-11-03 16:36
松果果
阅读(2574)
评论(0)
推荐(0)
摘要:
router.js 参考如下 Vue.use(VueRouter); const routes = [ { path: "/", component: index, name: "index", meta: { title: '首页' } }] var router = new VueRouter( 阅读全文
posted @ 2020-10-20 20:05
松果果
阅读(3205)
评论(0)
推荐(0)
摘要:
常用边框 border: solid 1px black 1像素的黑色边框 某一边的边框 border-top: solid 1px black border-right: solid 1px black border-bottom: solid 1px black border-left: sol 阅读全文
posted @ 2020-10-06 10:40
松果果
阅读(332)
评论(0)
推荐(0)
摘要:
方法 templet: "<div>{{layui.util.toDateString(d.createTime, 'yyyy-MM-dd HH:mm:ss')}}</div>" 完整代码参考 cols: [[ {field: 'badWord', title: '关键词'} , { field: 阅读全文
posted @ 2020-09-11 13:39
松果果
阅读(2590)
评论(0)
推荐(0)
|