js基础
来源:互联网 发布:金十数据官网原油 编辑:程序博客网 时间:2024/05/16 10:52
1.web页面包括三个要素:内容(HTML),外观(CSS),行为(JAVASCRIPT).
2.基本数据类型:数字(number),字符串(string),布尔(boolean),undefined,null
3.数字:NaN,Infinity
4.布尔值。false(空字符串,null,undefined,数字0,数字NaN,布尔值false)。ture("0","false")
5.操作符,typeof。判断数据类型。delete,删除元素
6.比较运算符。==相等,===等价运算符。1==‘1’,true。1===‘1’,false。
7.array:delete 元素。
8.条件与循环:if,switch,while,do-while,for,for-in。
9.预定义函数:parseInt(),parseFloat(),isNaN(),isFinity(),eval()
encodeURI,decodeURI():
var url="http://www.baidu.com?q=this is "
encodeURI(url);>>>http://www.baidu.com?q=this%20is%20;
encodeURIComponent(),decodeURIComponent():
var url="http://www.baidu.com?q=this is "
encodeURI(url);>>>http%3A%2F%2Fwww.baidu.com%3Fq=this%20is%20;
10.变量没有使用var,则该变量视为全局变量。
11.函数也是数据
0 0
- js基础
- js基础
- js基础
- js基础
- JS基础
- js基础
- js基础
- JS基础
- js基础
- js基础
- js基础
- js基础
- JS基础
- js 基础
- js-基础
- js基础
- js基础
- js基础
- 关于gitignore文件,Myeclipse和IDEA的编译输出文件的问题
- oracle hanganalyze工具的使用
- POJ 2421 Constructing Roads 最小生成树 Kruskal算法
- 几种排序算法的总结(java版)
- (Android开发辅助工具)动态广播注册解注工具
- js基础
- 链表反转(使用递归和非递归两种方式)
- mysql(优化02)
- Android简单计算器
- WebService客户端调用接口的方法
- winter is coming
- (2)python变量类型
- SQLServer 递归查询 根据子表查询所有父表
- Python模拟登陆新浪微博