fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"> </script> <script> $(document).ready(function(){ $("input").keyup(function(){ txt=$("input").val(); $("span").load("demo_ajax_gethint.php",{suggest:txt}); }); }); </script> </head> <body> <p>在下面的输入框中输入字母:</p> 第一个名称: <input type="text" /> <p>匹配项: <span></span></p> <p>完整 PHP 代码文件 (<a href="demo_ajax_gethint.txt" target="_blank">demo_ajax_gethint</a>) </p> </body> </html>
运行结果