摘要: //限制字符个数$("div").each(function(){ var maxwidth=50; if($(this).text().length>maxwidth){ $(this).text($(this).text().substring(0,maxwidth)); $(this).htm 阅读全文
posted @ 2018-01-15 11:34 Echo的前端空间 阅读(166) 评论(0) 推荐(0) 编辑
摘要: //判断浏览器是否支持 placeholder属性 function isPlaceholder(){ var input = document.createElement('input'); return 'placeholder' in input; } if (!isPlaceholder() 阅读全文
posted @ 2018-01-15 11:33 Echo的前端空间 阅读(82) 评论(0) 推荐(0) 编辑
摘要: <!--倒计时脚本 star--> var outTime = null, number = 60; $("#djsTime").click(function () { //倒计时 var CountDown = $(".CountDown"); if (outTime) { window.clea 阅读全文
posted @ 2018-01-15 11:32 Echo的前端空间 阅读(82) 评论(0) 推荐(0) 编辑
摘要: var intt;Page({ data: { hour: 0, minute:0, second:0, millisecond:0, int: '00:00:00', cost: 0, flag:1, endtime:"", }, onLoad: function () { }, //开始 sta 阅读全文
posted @ 2018-01-15 11:30 Echo的前端空间 阅读(1610) 评论(0) 推荐(0) 编辑