2017年11月23日

摘要: !(function (doc, win) { var el = doc.documentElement; //resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'; function setSize() 阅读全文
posted @ 2017-11-23 11:55 杨二凡 阅读(952) 评论(0) 推荐(0) 编辑

2017年10月28日

摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> .box{ float: left; width: 155px; height: 212px; backgroun 阅读全文
posted @ 2017-10-28 14:30 杨二凡 阅读(2349) 评论(0) 推荐(0) 编辑

2017年9月27日

摘要: 今天写一个定时器的练习,结果发现清除定时器的语句起不了作用,代码如下 <script type="text/javascript"> i=11; var s=document.getElementById("s1");//获取span标签 function daojishi(){ i--; s.in 阅读全文
posted @ 2017-09-27 14:33 杨二凡 阅读(2444) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <span id="s1"></span> <span style="color:red;">|</span> <body> </body> <s 阅读全文
posted @ 2017-09-27 11:04 杨二凡 阅读(257) 评论(0) 推荐(0) 编辑

2017年9月26日

摘要: <script type="text/javascript"> var exmple=[45,85,24,89,98,64,16,72,50,80]; document.write("排序前:"+exmple+"</br>"); function sor(arr){ for(i=0;i<arr.le 阅读全文
posted @ 2017-09-26 17:29 杨二凡 阅读(168) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> function LetterChanges(str) { str=str.split("");//将字符串变成数组 for(i=0;i<str.length;i++){ str[i]=str[i].charCodeAt();//将数组 阅读全文
posted @ 2017-09-26 16:58 杨二凡 阅读(382) 评论(0) 推荐(0) 编辑

导航