$.ajax请求

      $.ajax({
                url: "/index.php/home/video/index",
                dataType: 'json',
                type: 'POST',
                data: data,
                success: function(result) {
                    if (result.code != 0) {
                        alert("暂无数据");
                        return false;
                    }
                    callback(fieldName, index, result);
                },
                error: function() {
                    alert("获取条件筛选异常")
                },
                complete:function(){
                    
                }
            });

猜你喜欢

转载自www.cnblogs.com/hyx626/p/9778954.html