摘要:
!(function (doc, win) { var el = doc.documentElement; //resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'; function setSize() 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> .box{ float: left; width: 155px; height: 212px; backgroun 阅读全文
摘要:
今天写一个定时器的练习,结果发现清除定时器的语句起不了作用,代码如下 <script type="text/javascript"> i=11; var s=document.getElementById("s1");//获取span标签 function daojishi(){ i--; s.in 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <span id="s1"></span> <span style="color:red;">|</span> <body> </body> <s 阅读全文
摘要:
<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 阅读全文
摘要:
<script type="text/javascript"> function LetterChanges(str) { str=str.split("");//将字符串变成数组 for(i=0;i<str.length;i++){ str[i]=str[i].charCodeAt();//将数组 阅读全文