84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
I still don’t quite understand what I’m talking about, what is a function? - PHP Chinese website Q&A - I still don’t understand what I’m talking about, what exactly is a function? - PHP Chinese website Q&A
Take a look around and learn.
函数就是包裹在花括号中的代码块,前面使用了关键词 function
例如
function msg(){ 这里是要执行的代码 }
当调用该函数时,会执行函数内的代码。
可以在某事件发生时直接调用函数(比如当用户点击按钮时),并且可由 JavaScript 在任何位置进行调用。
I still don’t quite understand what I’m talking about, what is a function? - PHP Chinese website Q&A - I still don’t understand what I’m talking about, what exactly is a function? - PHP Chinese website Q&A
Take a look around and learn.
函数就是包裹在花括号中的代码块,前面使用了关键词 function
例如
当调用该函数时,会执行函数内的代码。
可以在某事件发生时直接调用函数(比如当用户点击按钮时),并且可由 JavaScript 在任何位置进行调用。