Blogger Information
Blog 7
fans 1
comment 2
visits 5635
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
JavaScript基础/变量/数据类型/运算符/条件语句-php五期线上班
Morning的博客
Original
669 people have browsed it

JavaScript基础:

  1.引入js有三种方式:1.head头部  2.body内部  3.外部引入写在头部,三种方式没有优先级的区别,执行顺序按书写顺序。

 2.使用var来声明变量。注意:js对大小写敏感,变量名以字母、下划线、美元符号开头

 3.JavaScript数据类型:字符串、数字、布尔、数组、对象、Null、Undefined

4.运算符:&&,||,!,!=,+,-,*,/,--,++,=,==,===,注意:=是赋值,==判断是否相等,===判断是否全等于(值和类型)

5.条件语句:if(){}else{} 或者if(){}else if();

HL8)B[(2UJAUC%RX{J)@7WV.png

   

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments