摘要: <script> Array.prototype.swap = function(i, j) { var temp = this[i]; this[i] = this[j]; this[j] = temp; } Array.prototype.bubbleSort = function() { fo 阅读全文
posted @ 2016-05-26 22:27 swustedu 阅读(97) 评论(0) 推荐(0)
摘要: http://www.cricode.com/2001.html 阅读全文
posted @ 2016-05-26 22:25 swustedu 阅读(268) 评论(0) 推荐(0)
摘要: 改变文本节点得值 xmlDoc = loadXMLDoc("books.xml");x = xmlDoc .getElementsByTagName("title")[0].childNodes[0];x.nodeValue="Easy Cooking"; 改变属性的值 xmlDoc = loadX 阅读全文
posted @ 2016-05-26 22:21 swustedu 阅读(256) 评论(0) 推荐(0)