易截截图软件、单文件、免安装、纯绿色、仅160KB

javascript stuffs

Primitive types
1. undefined, null, boolean, number, string; undefined is derived from null.
e.g. var tmp; typeof tmp == undefined.
e.g. void(javascript:aler(‘x’)) == undefined.
e.g. undefined==null
2. NaN!=NaN isNaN(“123”)==false isNaN(“blue”)==true
3. var num = 10; num.toString();num.toString(2);num.toString(8);num.toString(16) 4. parseInt, parseFloat 5. object class     properties: constructor, prototype     methods: hasOwnProperty(property), isPrototypeOf(object), propertyIsEnumberable(property),toString(),valueOf() 6. 在Boolean表示大中,所有对象都会被自动转换为true 7. Number class: toFixed, MAX_VALUE, POSITIVE_INFINITE, NEGATIVE_INFINITE, toPrecision, toExponential 8. String: length, charAt(), concat, indexOf, lastIndexOf, localeCompare, compare, subString, slice, toLowerCase, toLowerCase, toUpperCase, toLocaleUpperCase, split 9. delete只能删除开发者自定义的方法和属性。 10. js中的对象的内在表征是key value集合 11. js不允许overload 12. 每个函数的调用堆栈中都有一个arguments对象 13. Function class:var f = new Function(argument1, argument2, …, argumentN, function_body_string)       e.g. var f = new Function(“n”, “alert(n)”) 14. 判断时区使用的是否是夏令时      e.g. d1 = new Date(2008,6,1); d2 = new Date(2008,6,1); support = d1.getTimezonOffset()!=d2.getTimezoneOffset(); 15. undefined, NaN, Infinity, Object, Array, Function, Boolean, String, Number, Date, RegExp, Error, EvalError, ReferenceError, SyntaxError, TypeError, URIError 16. Math class: E,LN10,LN2,LOG2E,LOG10E,PI,SQRT1_2,SQRT2,min,max,ceil,floor,round,pow,exp,sin,cos,tan,atan,atan2,asin,acos 17. window.open(uri, [frame_name|top|parent|self|blank],parameter)       where parameter: left, top, height, width, resizable, scrollable, toolbar,


相关文档:

JavaScript学习笔记(四)

1.出于安全考虑,JavaScript中只有开发者自定义的类可以被继承。
2.使用对象冒充实现继承
      function ClassA(sColor){
         this.color=sColor;
         this.showColor=function (){
 &nbs ......

JavaScript中内置对象

JavaScript中提供了一些非常有用的内部对象作为该语言规范的一部分,每一个内部对象都有一些方法和属性。
JavaScript中提供的内部对象按使用方式可以分为动态对象和静态对象。
动态对象:在引用他的属性和方法是,必须使用new关键字创建一个对象实例,然后才可以使用“对象实例名.成员”的格式来访问其属性和方 ......

JavaScript题型

 1.如何获取表单<select>域的选择部分的文本?
<form name="a">
<select name="a" size="1" onchange="_sel(this)">
<option value="a">1</option>
<option value="b">2</option>
<option value="c">3</option>
< ......

[转帖]JavaScript窗体大小

[转帖]JavaScript窗体大小
网页可见区域宽:document.body.clientWidth
网页可见区域高:document.body.clientHeight
网页可见区域宽:document.body.offsetWidth (包括边线的宽)
网页可见区域高:document.body.offsetHeight (包括边线的宽)
网页正文全文宽:document.body.scrollWidth
网页正文全文高:docume ......

javascript显示时间


 //显示当前时间----------------------------------------------------------
<SCRIPT language="javascript" type="text/javascript" >
function reloop(){
 var time = new Date( ); //获得当前时间
 //获得年、月、日,Date()函数中的月份是从0-11计算
 var year = time.getFullYear ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号