摘要:
window.onload = function(){ var oBtn = document.getElementsByTagName("*"); for(var i=0;i<oBtn.length;i++){ oBtn[i].onclick = function(event){ console.log(this.tagName); ... 阅读全文
摘要:
var a = [2,3,1,5,4,7,6]; var b = sort(a); console.log(b); function sort(a){ var str =""; for(var i=0;i0是从小到大排序;a[i]-a[j] 0){ str = a[i]; a[i] = a[j]; ... 阅读全文