易截截图软件、单文件、免安装、纯绿色、仅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 最简单检测网速的方法和应用


网速很慢,但又得打开 Flash 是一件很痛苦的事情,特别是 Silverlight 来临之际,这个技术可能有点用
具体代码如下
<SCRIPT LANGUAGE="JavaScript">
var starttime = new Date()
</SCRIPT>
<img src="images/ConvLogo.JPG?id=<%Int(37462 * Rnd +&n ......

javascript学习日志三

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

压缩javascript和css


This document is for establishing build standard for JavaScript and CSS compression
The objective for this document is to establish a companywide JavaScript and CSS compression standard that can be shared crossing multiple SharePoint product development projects. This is the first draft
Overview ......

两个效果蛮好的javascript幻灯片(Jquery slider)

http://css-tricks.com/creating-a-slick-auto-playing-featured-content-slider/
demo:http://css-tricks.com/examples/FeaturedContentSlider/
Featured Content Slider Using jQuery
http://demo.webdeveloperplus.com/featured-content-slider/ ......

javascript常用知识

navigator对象主要用于检测浏览器的版本,该对象的属性主要有:
appcodeName:
appVersion
.....
JavaScript中保留字。。。
转换函数eval("12.34*12")
parseInt()
parseFloat();
join() 把一个数组的所有元素都转换成字符串
reverse()颠倒数组
sort排序
concat()
slice()
splice()
push()
pop()
toString() ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号