01 2021 档案
摘要:1. npm install print-js --save import printJS from 'print-js' printJS({ printable: 'panel', // 元素id,不支持多个 type: 'html', targetStyle: ['* '], targetSty
阅读全文
摘要:1. <input type="text" placeholder="" v-model="codeval" >2. data: { card_id : '' },computed: { codeval: { get: function () { return this.card_id; }, se
阅读全文
摘要:/** * 日期格式化 */ export function dateFormat(date) { let format = 'yyyy-MM-dd hh:mm:ss' if (date !== 'Invalid Date') { var o = { 'M+': date.getMonth() +
阅读全文
摘要:1.利用jquery 2. bindData() { $("input,select option").each(function() { $(this).attr("value", $(this).val()); }); //搞定 type=checkbox,type=radio 选中状态 $("
阅读全文