摘要: <template> <view> <!-- class --> <view class="static" :class="[activeClass,errorClass]">111</view> <view class="static" v-bind:class="[isActive ? acti 阅读全文
posted @ 2021-01-04 10:41 呱呱呱呱坠地 阅读(1027) 评论(0) 推荐(0)
摘要: 父元素设置 { display:flex; flex-direction:row; align-item:center; } 子元素之间将水平垂直居中,场景如:左边图片+右边文字 阅读全文
posted @ 2020-09-09 10:26 呱呱呱呱坠地 阅读(99) 评论(0) 推荐(0)
摘要: function createXHR(){ var xhr = null; if(window.XMLHttpRequest){ xhr = new XMLHttpRequest(); } else{ xhr = new ActiveXObject("Msxml2.XMLHTTP"); } retu 阅读全文
posted @ 2020-06-21 09:40 呱呱呱呱坠地 阅读(191) 评论(0) 推荐(0)
摘要: function getElementStyle(selector) { var element = document.querySelector(selector); return element.currentStyle ? element.currentStyle : window.getCo 阅读全文
posted @ 2020-06-21 09:38 呱呱呱呱坠地 阅读(181) 评论(0) 推荐(0)
摘要: function getDecimal(data, fix) { if (isNaN(data) == false) { var decimal = parseFloat(data) - parseInt(data); if (fix && isNaN(fix) == false) { var te 阅读全文
posted @ 2020-01-12 20:03 呱呱呱呱坠地 阅读(118) 评论(0) 推荐(0)
摘要: function money(num) { // var strOutput = ""; var strUnit = '仟佰拾亿仟佰拾万仟佰拾圆角分'; num += "00"; var intPos = num.indexOf('.'); if (intPos >= 0) num = num.su 阅读全文
posted @ 2020-01-10 22:15 呱呱呱呱坠地 阅读(163) 评论(0) 推荐(0)
摘要: function set(arry) { var n = {}, r = []; //n为hash表,r为临时数组 for (var i = 0; i < arry.length; i++) //遍历当前数组 { if (!n[arry[i]]) //如果hash表中没有当前项 { n[arry[i 阅读全文
posted @ 2020-01-10 22:13 呱呱呱呱坠地 阅读(124) 评论(0) 推荐(0)
摘要: //示例:身份证 $.validator.addMethod("CheckID", function(value) { //验证身份证 var res = /^(\d{15}$|^\d{18}$|^\d{17}(\d|X|x))$/; if (value) { if (res.test(value) 阅读全文
posted @ 2020-01-10 22:10 呱呱呱呱坠地 阅读(236) 评论(0) 推荐(0)
摘要: <template> <div class="hello"> <el-form> <el-row> <el-col :span="5"> <div class="grid-content bg-purple"> <el-form-item label-width="120px"> <span slo 阅读全文
posted @ 2020-01-05 11:51 呱呱呱呱坠地 阅读(15714) 评论(0) 推荐(1)
摘要: 1、安装vuecli3 npm install -g @vue/cli 2、查看版本 vue-V 3、创建项目 vue create myproject 4、进入文件 cd myproject 5、将package.json serve改成dev 然后运行 npm run dev 6、打开local 阅读全文
posted @ 2019-12-28 17:11 呱呱呱呱坠地 阅读(2745) 评论(0) 推荐(0)