01 2021 档案

摘要:1. npm install print-js --save import printJS from 'print-js' printJS({ printable: 'panel', // 元素id,不支持多个 type: 'html', targetStyle: ['* '], targetSty 阅读全文
posted @ 2021-01-29 11:03 Smile浅笑 阅读(299) 评论(0) 推荐(0) 编辑
摘要:1. <input type="text" placeholder="" v-model="codeval" >2. data: { card_id : '' },computed: { codeval: { get: function () { return this.card_id; }, se 阅读全文
posted @ 2021-01-20 17:47 Smile浅笑 阅读(2169) 评论(0) 推荐(0) 编辑
摘要:/** * 日期格式化 */ export function dateFormat(date) { let format = 'yyyy-MM-dd hh:mm:ss' if (date !== 'Invalid Date') { var o = { 'M+': date.getMonth() +  阅读全文
posted @ 2021-01-19 15:41 Smile浅笑 阅读(57) 评论(0) 推荐(0) 编辑
摘要:1.利用jquery 2. bindData() { $("input,select option").each(function() { $(this).attr("value", $(this).val()); }); //搞定 type=checkbox,type=radio 选中状态 $(" 阅读全文
posted @ 2021-01-06 14:52 Smile浅笑 阅读(382) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示