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