再会。
代码:
$("#user-search_input").autocomplete({
source: function( request, response ) {
var form_data=$("#user-search_input").val();
$.ajax({
url: "./AutoCompliteFind/",
dataType: "json",
type: "POST",
contentType: "application/json",
data:{term: form_data},
success: function(data) {
//alert(data);
}
});
},
minLength: 2
});
请告诉我如何在./AutoCompliteFind/页面上获取值参数术语?
PS:语言——PHP
PPS:如果我使用var_dump($_POST)
我得到array(0) { }
.