【JS学习笔记】内置对象
来源:互联网 发布:淘宝xboxone手柄会假吗 编辑:程序博客网 时间:2024/04/30 04:47
晓石头的博客
邮箱:178673693@qq.com
邮箱:178673693@qq.com
转载请注明出处,原文链接:http://blog.csdn.net/qiulanzhu/article/details/50663564
//Global对象//URI编码var name = "//qiu 邱"var encodeName = encodeURI(name);var encodecompName = encodeURI(name);document.write(encodeURI(name) +'<br>');document.write(encodeURIComponent(name) +'<br>');document.write(decodeURI(encodeName));document.write(decodeURIComponent(encodeName));//eval()方法//担当一个字符串解析器的作用(常配合数据库使用)eval('var box = 100');document.write(box);//Math对象Math.E;Math.LN10;Math.LN2;Math.LOG2E;Math.LOG10E;Math.PI;Math.SQRT1_2;Math.SQRT2;Math.min(2,3);//最小值Math.max(2,3);//最大值Math.ceil(25.1);//26:向上舍入Math.floor(25.9);//25:向下舍入Math.round(25.5);//26:四舍五入//random():产生随机数//参数lower 到 upper的随机数function selectForm(lower, upper){var number = upper - lower + 1;return Math.floor(Math.random()*number + lower); }
0 0
- js内置对象 学习笔记
- 【JS学习笔记】内置对象
- js内置对象 学习笔记
- javascript学习笔记--js内置对象
- JS学习笔记(5)内置对象
- 内置对象学习笔记
- JS学习-js内置对象
- js学习笔记:引用类型——单体内置对象
- js笔记4内置对象
- js学习(内置对象)
- JS内置对象学习总结
- 笔记:js内置对象及自定义对象
- jsp学习笔记--内置对象
- JSP内置对象学习笔记
- JSP内置对象学习笔记
- js内置对象方法笔记 js内置函数
- jsp学习笔记--内置对象--request对象
- 学习笔记:javascript内置对象:字符串对象
- jquery ajax No 'Access-Control-Allow-Origin' header is present on the requested resource
- nginx referer限制
- 8VC Venture Cup 2016 - Elimination Round A. Robot Sequence
- android pull 解析xml文件
- Python语言实践分析 -- 默认参数
- 【JS学习笔记】内置对象
- Visual Studio 2008 可扩展性开发(六):操作Solution Explorer
- 8VC Venture Cup 2016 - Elimination Round B. Cards (隐式图DFS)
- struts2拦截器配置详解
- p277 第十章 数组和指针
- Spark源码分析之一:Job提交运行总流程概述
- Andriod 判断软键盘弹出并隐藏详解
- SQL Server专家的10个秘诀(翻译加注解)
- 新年第一帖——耍一耍Android 摇一摇功能