遍歷:javascript
var
array = [1,2,3,4];
html
$(array).each(function
(index){
java
alert(
this
);
this
});
url
$.each(array,
function
(index){
code
alert(
this
);
htm
});
blog
top.document.referrer javascript 獲取上一頁的url ip
複選框判斷是否選中:↓↓↓get
var gouxuan=$('input[type=checkbox]').is(':checked'); alert(gouxuan);