联系官方销售客服
1835022288
028-61286886
制作插件时,AJAX POST 数据时,提示 跨站验证禁止此操作
应该怎么写才可以正常验证呢?
$.ajax({ type: "POST", dataType: "json", url: '{dr_url("地址")}&id=' + id, //data: $(form).serialize(), success: function(json) { if (json.code == 1) { select.append(json.msg); } else { dr_cmf_tips(0, json.msg); } return false; }, error: function(HttpRequest, ajaxOptions, thrownError) { dr_ajax_alert_error(HttpRequest, ajaxOptions, thrownError) } });