01 2020 档案

摘要://颜色失焦验证 colorBlur() { if (!(/^[a-zA-Z\u4e00-\u9fa5]+$/).test(this.color)) { this.$Message.warning('只能输入汉字和英文字母!') this.color = '' } }, //颜色编码失焦验证 sho 阅读全文
posted @ 2020-01-14 17:11 苏小白啊 阅读(100) 评论(0) 推荐(0) 编辑
摘要:<input type='text' v-model="v" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)" onblur="this.v();" /> 阅读全文
posted @ 2020-01-09 15:02 苏小白啊 阅读(927) 评论(0) 推荐(0) 编辑
摘要:copy(obj1,obj2){var obj2=obj2||{}; //最初的时候给它一个初始值=它自己或者是一个jsonfor(var name in obj1){if(typeof obj1[name] "object" && obj1[name] !== null){ //先判断一下obj[ 阅读全文
posted @ 2020-01-06 18:49 苏小白啊 阅读(239) 评论(0) 推荐(0) 编辑
摘要:<Form ref="formInline" inline :label-width="70" @keyup.enter.native="queryFun(true)"> <FormItem label="颜色名称"> <Input type="text" v-model="formInline.u 阅读全文
posted @ 2020-01-06 14:39 苏小白啊 阅读(2426) 评论(0) 推荐(0) 编辑

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