GMT:JS整理

GMT:JS整理
$.fn.extend({
        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);
                }
            });

你可能感兴趣的:(GMT:JS整理)