易截截图软件、单文件、免安装、纯绿色、仅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 to ajax(一)

AJAX 在浏览器与 Web 服务器之间使用异步数据传输(HTTP 请求),这样就可使网页从服务器请求少量的信息,而不是整个页面。
AJAX 基于 Web 标准
AJAX 基于下列 Web 标准:
JavaScript
XML
HTML
CSS
在 AJAX 中使用的 Web 标准已被良好定义,并被所有的主流浏览器支持。AJAX 应用程序独立于浏览器和平台。
Deafault. ......

javascript 在 ie 和 firefox 区别

1.document.formName.item("itemName") 问题
说明:IE下,可以使用document.formName.item("itemName")或document.formName.elements["elementName"];Firefox下,只能使用document.formName.elements["elementName"].
解决方法:统一使用document.formName.elements["elementName"].
JQUERY:
$("#idName")
  &nb ......

javascript学习日志三

1、对象属性:.length为长度属性,
         .toUpperCase()为大写字母文本
2、indexof函数方法返回字符串内第一次出现字符串的字符位置,字符串的位置从0开始,如果没有找到子字符串,则返回-1
3、match()方法可用来找到字符串中特定的字符,如果找到则返回这个字符,如果没有 ......

JavaScript实现CRC32函数

(function() {
var table = "00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号