Home > Backend Development > PHP Tutorial > js files and php files

js files and php files

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-08 09:24:54
Original
1120 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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template