会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
知兮
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
5
6
7
8
9
10
11
12
13
14
下一页
2017年12月28日
VUE2.0 【v-html】标签使用技巧
摘要: <div class="active-rules"> <div class="weui-weixin-content" id="rules"> <p>活动名称:{{message1}}</p> <p>活动时间:{{message2}}</p> <p>活动奖品:<span v-html="newMes
阅读全文
posted @ 2017-12-28 17:23 知兮
阅读(14225)
评论(0)
推荐(0)
2017年8月10日
layer弹出层不居中解决方案
摘要: 用layer做操作结果提示时,发现如果页面超出屏幕的高度时,弹出的提示不是屏幕居中,而是在页面高度的中间,如果一个页面的高度比较大,就看不到提示了。 解决方法一: 当页面缺少下面这个声明时,在页面最上面加上声明就能解决问题。 页面就是少了这个,加上就正常。原因就是少了这个声明,导致解析页面时不正确
阅读全文
posted @ 2017-08-10 15:01 知兮
阅读(1421)
评论(0)
推荐(0)
2017年6月27日
vue生命周期回调方法
摘要: 最近在用vue开发一个商品列表页,因需要根据请求回的字段是否有内容来显示隐藏该字段, 但因为vue异步加载导致显示隐藏方法不起作业(主要是判断条件取不到页面渲染内容),围观了vue生命周期后发现updated方法很好用
阅读全文
posted @ 2017-06-27 20:29 知兮
阅读(2659)
评论(0)
推荐(0)
2017年6月5日
关闭窗口
摘要: $(document).mousedown(function(e){ var _con = $("#up-list-ul-qlc"); if(!_con.is(e.target) && _con.has(e.target).length 0){ $("#up-list-ul-qlc").hide()
阅读全文
posted @ 2017-06-05 12:03 知兮
阅读(232)
评论(0)
推荐(0)
2017年5月24日
jquery鼠标点击窗口或浮动层以外关闭层【阻止冒泡事件】
摘要: $(".up-list a.th1").click(function(){ $(this).next("ul#up-list-ul").show(); }); $(document).mousedown(function(e){ var _con = $("#up-list-ul"); if(!_con.is(e.target) &...
阅读全文
posted @ 2017-05-24 18:13 知兮
阅读(890)
评论(0)
推荐(0)
2017年5月23日
作列表排列时div的table属性应用
摘要: table 111 比对执行比对执行比对执行比对执行 333 444 555
阅读全文
posted @ 2017-05-23 11:54 知兮
阅读(346)
评论(0)
推荐(0)
2017年5月9日
下拉菜单联动效果
摘要: 1,接口请求方式:post/get 2,产品编号读取数据修改:get传参通过生产线拉取对应产品编号/admin/f_kiln_operating_table/get_product_numberRoute('f_kiln_operating_table.get_product_number')参数:
阅读全文
posted @ 2017-05-09 10:55 知兮
阅读(271)
评论(0)
推荐(0)
2017年3月31日
根据ipnut的maxlength实时提示输入的字符长度
摘要: $(function(){ $("body").on("focus","input,textarea", function() { if(!!$(this).attr('maxlength')){ var paopao =document.createElement('div'); paopao.style.left= $(...
阅读全文
posted @ 2017-03-31 10:34 知兮
阅读(1252)
评论(0)
推荐(0)
2017年3月27日
输入框为数字类型时防止maxlength属性不起作用
摘要: 5)value=value.slice(0,5)" /> //输入框为数字类型时防止maxlength属性不起作用 $('input').bind('input propertychange', function() { if($(this).attr("type")=="number"){ //获取输入框的最大长度 var mxaL= $(this)...
阅读全文
posted @ 2017-03-27 14:31 知兮
阅读(1746)
评论(0)
推荐(0)
2017年3月20日
datetimepicker[jquery-ui]时间控件的三种初始化方法
摘要: 1.只显示年月日 2.只显示时分秒(需要引入时间插件文件。1.【jQuery-Timepicker-Addon/jquery-ui-timepicker-addon.js】2.汉化【datetimepicker/js/jquery.ui.datepicker-zh-CN.js.js】) 3.显示年月
阅读全文
posted @ 2017-03-20 15:52 知兮
阅读(13244)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
14
下一页
公告