The thinkphp uses the U method to invoke the JS file instance,
This paper describes the method of invoking JS file with U method in thinkphp. Share to everyone for your reference. Specific as follows:
A quick way to call functions directly in the template file is provided in the TP. U is one of them. The manual has its usage:
Copy the Code Code as follows: {: U (' User/insert ')}
First the JS file suffix to HTML (this will not affect), and then write a jsaction, in the inside of the call:
<?phpclass jsaction extends action{ function nav () { $this->display (' Index:js:nav ');} }? >//Finally, change the JS link in the left frame:
It is hoped that this article is helpful to the PHP program design based on thinkphp framework.
http://www.bkjia.com/PHPjc/1019072.html www.bkjia.com true http://www.bkjia.com/PHPjc/1019072.html techarticle thinkphp using U method to invoke the JS file instance, this paper describes the method of invoking JS file with U method in thinkphp. Share to everyone for your reference. Specific as follows: In the TP provided in the ...