使用try,catch防止页面出错.
Posted in 默认分类 on 六月 7th, 2010 by admin – Be the first to comment
jQuery(function(){
try{
$(':input').each(function(i){
var t = $(this).attr('type');
if(t==='button' || t==='submit'){
$(this).css({'cursor':'pointer'});
}
});
}catch(e){}
});