解决方案 »

  1.   


        function checkAnd(){
    if($('#title').val()==''){
                alert('请填写标题!');
                return ;
            }
            if($('#content').val()==''){
                alert('请填写内容!');
                return ;
            }
             
    if($('#level').val()==''){
        alert('请选择等级');
    return ;
    }
     
            $.post('__URL__/insert',{title:$('#title').val(),content:$('#content').val(),attachments:$('#attachments').val(),level:$('#level').val()},function(json){
    /*  $.post('__URL__/insert',{id:$('#id').val(),title:$('#title').val(),content:$('#content').val(),attachments:$('#attachments').val(),level:$('#level').val()},function(json){   */
                if(json){
                    if(json[0]){
                        location.href = '__APP__/Admin/admin1.html';
                    }else{
                        Notifier.warning('添加失败');
                    }
                }else{
                    Notifier.error('服务器错误');
                }        },'json')
        }这里哪个地方出问题了?提交没有反应