摘要:
wxml: js: 阅读全文
摘要:
$.ajax({ url:url, type:"POST", data:data, dataType:"JSON", success:function (data) { vue_register.error_code_msg = "";//显示报错信息--后台传输 if (data.status){ 阅读全文
摘要:
html: <!--导航栏头部--><div class="type_nav"> <ul class="clearfix " v-on:touchstart="touch($event,1)" v-on:touchmove="touch($event,2)" v-on:touchend="touch 阅读全文
摘要:
Html: Js: vue获取当前元素 var el = e.target; //当前元素,可修改(能够用此方法获取到他的子元素等) var el = e.currentTarget;//当前元素,不可修改(不能用此方法获取到他的子元素等) $(el) 当前jq元素 阅读全文
摘要:
数据绑定 <input type="tel" placeholder="请输入手机号" v-on:input="verifyPhone()" v-on:blur="verifyPhone()" v-model="phone" /> <p class="labeltext">{{error_phone 阅读全文
摘要:
官方网站:http://layer.layui.com/ 在页面中引入: <script src="js/layer-v3.0.3/layer/layer.js"></script> 注意:在引用插件时,先引用jquery Js中简单弹框 其他使用方法在官方文档中有详解 阅读全文
摘要:
1.在使用input页面加载script的引用 <script src="js/distpicker/distpicker.data.js"></script> <script src="js/distpicker/distpicker.js"></script> 注意:必须使用jquery Htm 阅读全文
摘要:
.font-hide(@num){ word-break: break-all; text-overflow: ellipsis; display: -webkit-box; /** 将对象作为伸缩盒子模型显示 **/ -webkit-box-orient: vertical; /** 设置或检索伸 阅读全文
摘要:
两个数组判断是否有重复项 $.each(arr1,function(i,value){ val = value; num1 = i;//用来标记当前arr1数组中的重复项 $.each(arr2,function(i,value){ if(val == value){ alert(value); } 阅读全文
摘要:
AJAX向后台传输数//1 直接在url中传递 $.ajax({ type: "POST", url: "/testAjax/addUser?id=1&name=zhangxiaofan&sex=male", success:function(data){ //TODO } }); //2 html 阅读全文