html:文件的声明头
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<meta name="referrer" content="no-referrer"/>
iview
1、iview表格里面对后台返回的状态码进行翻译
两个状态码翻译
多个状态码翻译
2、转换时间格式
在data(){return{selfFormat: this.format || "YYYY/MM/DD hh:mm:ss",}}
也可以写成selfFormat: this.format || "YYYY-MM-DD hh:mm:ss",看后台要求传什么的格式的
this.beginTime = moment(this.beginTime).format(this.selfFormat);
3、状态按钮的处理
4、 5、 6、 7、 8、 9、
bootstrap-vue
1、表格里面后台没有数据的时候,表格可以加这两个属性提示:
show-empty empty-text="暂无数据"
2、bootstrap表格里面,th里面的内容分行,在需要换行