GMT:JS整理
$.fn.extend({
mourseEvent:function(){
$(this).bind({
mouseover:function(){$(this).css('background-color','#FFA500');},
mouseout:function(){$(this).css('background-color','');}
});
},
});
mourseEvent:function(){
$(this).bind({
mouseover:function(){$(this).css('background-color','#FFA500');},
mouseout:function(){$(this).css('background-color','');}
});
},
});
$('#add').mourseEvent();
jQuery.ajax({$.ajax({
cache: true,
type: "POST",
url:ajaxCallUrl,
data:$('#yourformid').serialize(),// 你的formid
async: false,
error: function(request) {
alert("Connection error");
},
success: function(data) {
$("#commonLayout_appcreshi").parent().html(data);
}
});
cache: true,
type: "POST",
url:ajaxCallUrl,
data:$('#yourformid').serialize(),// 你的formid
async: false,
error: function(request) {
alert("Connection error");
},
success: function(data) {
$("#commonLayout_appcreshi").parent().html(data);
}
});
posted on 2013-07-27 19:02 void 閱讀(189) 評(píng)論(0) 編輯 收藏 所屬分類: Js 、Jquery