09 2017 档案

摘要:今天写一个定时器的练习,结果发现清除定时器的语句起不了作用,代码如下 <script type="text/javascript"> i=11; var s=document.getElementById("s1");//获取span标签 function daojishi(){ i--; s.in 阅读全文

posted @ 2017-09-27 14:33 杨二凡 阅读(2524) 评论(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 杨二凡 阅读(267) 评论(0) 推荐(0)

摘要:<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 杨二凡 阅读(177) 评论(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 杨二凡 阅读(400) 评论(0) 推荐(0)

导航