随笔分类 -  JavaScript

摘要:用jquery做的仿flash滚动图片新闻效果 阅读全文
posted @ 2011-04-10 22:31 基础软件 阅读(2507) 评论(0) 推荐(0)
摘要:在JavaScript中,有时需要准确知道一个变量的类型,显然typeof函数不能满足这个要求,这个函数在大多数情况下都返回object。这个功能需要写一点代码来实现。下面的函数可以得到一个变量的类型,调用时传递一个变量进去,会返回用字符串形式描述的变量类型。 阅读全文
posted @ 2010-05-19 11:26 基础软件 阅读(2735) 评论(0) 推荐(1)
摘要:// From JavaScript: the definitive guide, 5th edition// This function adds property accessor methods for a property with// the specified name to the object o. The methods are named get<name>// a... 阅读全文
posted @ 2010-04-21 16:13 基础软件 阅读(209) 评论(0) 推荐(0)