ʲô??JavaScript??????

ʲô??JavaScript??????

JavaScript?????????????еı?????ԣ????????Կ?????HTML??Web?????ɹ㷺???ڷ???????PC???ʼDZ????ԡ?ƽ????Ժ??????ֻ????豸??ͨ??JavaScript?ű???ͨ??Ƕ????HTML????ʵ???????Ĺ??ܵġ?

ʲô

1??һ?ֽ????Խű????ԣ????벻????Ԥ???룩??

ʲô

2????Ҫ??????HTML????׼ͨ?ñ???????µ?һ??Ӧ?ã?ҳ?????ӽ?????Ϊ??

ʲô

3??????ֱ??Ƕ??HTMLҳ?棬??д?ɵ?????js?ļ??????ڽṹ????Ϊ?ķ??롣

ʲô

4????ƽ̨???ԣ??ھ?????????????֧???£??????ڶ???ƽ̨?????У???Windows??Linux??Mac??Android??iOS?ȣ???

ʲô

1/4

ʲô

JavaScript??????

ʲô

JavaScript?????﷨?????????ǰ????ڻ??????еĴ???飬ǰ??ʹ???˹ؼ???function???????øú???ʱ????ִ?к????ڵĴ??롣??????ij?¼?????ʱֱ?ӵ??ú????????統?û??????ťʱ???????ҿ???JavaScript???κ?λ?ý??е??á?

ʲô

QQ??20180524162457.jpg

ʲô

JavaScript

????ʱ?䣺2023-09-19 16:41:35

ʲô

?û????֣? 7.1??

ʲô

???ش?????115

ʲô

Ӧ??ƽ̨??Windows

ʲô

???????ࣺ????????

ʲô????????

2/4

???ô??????ĺ?????

ʲô

myFunction(argument1,argument2)

ʲô

?ڵ??ú???ʱ???????????䴫??ֵ????Щֵ????Ϊ????????Щ?????????ں?????ʹ?ã??????Է????????IJ??????ɶ??? (,) ?ָ???

ʲô

QQ??20180524162457.jpg

ʲôJavaScript

JavaScript

????ʱ?䣺2023-09-19 16:41:35

ʲô

?û????֣? 7.1??

ʲô

???ش?????115

ʲô

Ӧ??ƽ̨??Windows

ʲô

???????ࣺ????????

ʲô????????

3/4

???з???ֵ?ĺ?????

ʲô

??ʱ?????ǻ?ϣ????????ֵ???ص??????ĵط???ͨ??ʹ?? return ???Ϳ???ʵ?֡?

ʲô

??ʹ?? return ???ʱ????????ִֹͣ?У???????ָ????ֵ??????ĺ????᷵??ֵ5??

ʲô

QQ??20180524162457.jpg

ʲôJavaScript

JavaScript

????ʱ?䣺2023-09-19 16:41:35

ʲô

?û????֣? 7.1??

ʲô

???ش?????115

ʲô

Ӧ??ƽ̨??Windows

ʲô

???????ࣺ????????

ʲô????????

4/4

????????ϣ???˳?????ʱ ??Ҳ??ʹ?? return ??䡣????ֵ?ǿ?ѡ?ģ?

ʲô

??? a ???? b????????Ĵ??뽫?˳???????????????? a ?? b ???ܺ͡?

ʲô

QQ??20180524162457.jpg

ʲô


ʲô


ʲôJavaScript

JavaScript

????ʱ?䣺2023-09-19 16:41:35

ʲô

?û????֣? 7.1??

ʲô

???ش?????115

ʲô

Ӧ??ƽ̨??Windows

ʲô

???????ࣺ????????

ʲô????????

ʲô??JavaScript??????

[?????Ķ?]