随笔分类 -  javascript

摘要:http://www.kancloud.cn 阅读全文
posted @ 2015-12-22 09:27 /折磨 阅读(164) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-12-16 15:46 /折磨 阅读(2600) 评论(0) 推荐(0)
摘要:http://popub.net:81/script/MSClass.html 阅读全文
posted @ 2014-04-11 10:47 /折磨 阅读(162) 评论(0) 推荐(0)
摘要:var str ='1,2,3'; var arr = str.split(","); var array1 =[]; var array2 =[]; for(i=0,l=arr.length;i<l;i++){ note = $('#t'+arr[i]).val(); type = $('#type'+arr[i]+' :selected').val() array1.push(note)... 阅读全文
posted @ 2013-11-10 13:36 /折磨 阅读(1200) 评论(0) 推荐(0)
摘要:function snsShare(snsId, title, content, image, url) { var snsUrl; // 新浪 腾讯 要申请appkey switch (snsId) { case 1: snsUrl = 'http://service.weibo.com/share/share.php?appkey=123456'; snsUrl += '&title='+content+'&pic='+image+'&url='+url; break; case 2: ... 阅读全文
posted @ 2013-10-29 15:01 /折磨 阅读(639) 评论(0) 推荐(0)
摘要:// 模板引擎配置项var tmplOptions = { evaluate: /\{\{([\s\S]+?\}?)\}\}/g, interpolate: /\{\{=([\s\S]+?)\}\}/g, encode: /\{\{!([\s\S]+?)\}\}/g, use: /\{\{#([\s\S]+?)\}\}/g, useParams: /(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\&# 阅读全文
posted @ 2013-10-29 14:13 /折磨 阅读(2169) 评论(0) 推荐(0)
摘要:页面中的代码:JS的代码//倒计时js 已过去时间function show_time(){ var timer = document.getElementById("timer"); if(!timer){ return ; } var time_now,time_distance,str_time; var int_day,int_hour,int_minute,int_second; var time_now=new Date(); time_now=time_now.getTime(); time_distance=time_now-time_now_server; 阅读全文
posted @ 2013-08-07 15:50 /折磨 阅读(836) 评论(0) 推荐(0)
摘要:http://www.popub.net/script/MSClass.html 阅读全文
posted @ 2013-02-25 22:57 /折磨 阅读(150) 评论(0) 推荐(0)
摘要:1 <select onchange="window.location.href=this.options[selectedIndex].value" >2 3 <option value="http://www.86shichang.com" >86市场网</option>4 5 <option value="http://www.yahoo.com" >雅虎</option>6 7 <option value="http://www.baidu.com&q 阅读全文
posted @ 2013-01-28 22:45 /折磨 阅读(152) 评论(0) 推荐(0)