js files and php files

WBOY
Release: 2016-08-08 09:24:54
Original
1036 people have browsed it

JS files can call JS functions, but cannot call PHP functions. Calling functions in other JS files must include the source of the function to be called. JS files are executed on the client, and PHP is executed on the server. The role of js is to provide the response and get the value of the php file.

Write a function in the js file and it will be automatically executed when the source is referenced.

$(function(){

alert("ggg");

})


The above introduces js files and php files, including related content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!