Home >Backend Development >PHP Tutorial >thinkpad x1 helix uses the built-in ThinkAjax of ThinkPHP to implement asynchronous transmission technology
Preparation work:
① First of all, you must be able to use the ThinkPHP framework
② It is best to have some basic knowledge of ajax (you can check out Xiao Fei’s other blog post: Ajax real-time verification of whether "username/email, etc." already exists)
③ 4 js document (click here to download for free)
First paste the source code:
Copy the code The code is as follows:
< ;script type="text/javascript">
function checktitle()
{
ThinkAjax.send('__URL__/checktitle','ajax=1&title='+$('title').value,'','checkbox ');
}