void

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);
                }
            });

posted on 2013-07-27 19:02 void 阅读(182) 评论(0)  编辑  收藏 所属分类: JsJquery


只有注册用户登录后才能发表评论。


网站导航: