<script language="javascript">
var aaa="hehe"; $(document).ready(function() {
$("#keyword").autocomplete("get_search.php",
{
extraParams: {pv:$aaa},
delay:10,
minChars:1,
matchSubset:1,
matchContains:1,
cacheLength:10
}
);
});</script>
PHP 那边$pv=$_GET['pv'] ;
收不到值阿!!!高手请指教 分全给你
$("#keyword").autocomplete("get_search.php",
{
// extraParams: {pv:$aaa}, //你这里多了一个$符号了~
extraParams: {pv:aaa},
delay:10,
minChars:1,
matchSubset:1,
matchContains:1,
cacheLength:10
}
);
});
jquery autocomplete下载
http://tieba.baidu.com/p/2028235042
http://download.csdn.net/detail/zhangxiangyi6314/4852335