//OK + cancel
layer.confirm(msg,
function(index) {
layer.close(index);
//TODD点击确定
},
function(index) {
//TODD click to cancel
return;
}
);
// only use the OK button
layer.alert(TODD,function(index){
layer.close(index);
//TODD
});
// loop through the array
$.each(数组, function(i, row) {
//TODD
});