
javascript
Even713
这个作者很懒,什么都没留下…
展开
-
yui学习笔记(三)----dom和event
yui 中的dom例子 YUI Dom Utility Example 2 <!-- #positions{ width:250px; border:2px solid black; padding:5px; } --> #positions{ width:250原创 2010-05-02 19:41:00 · 1797 阅读 · 0 评论 -
yui学习笔记(二)----使用css工具保持一致性
四个css工具:fonts,grids,reset,base 使元素标准化的reset.css 以下普通而常用的元素都将margin和padding值标准化到0 the document body div and p 所有list 元素:dl,dt,dd,ul,ol,li 标题级元素:h1,h2,h3,h4,h5,h6 pre和blockquo原创 2010-05-01 16:23:00 · 1050 阅读 · 0 评论 -
yui学习笔记(一)
YUI分为两个大类,一个是Ajax组件,里面包括对底层javascript包装后的几个工具包,分别是connection,event, dom,animation,dnd.还包括一组高级的javascript控件,目前包括AutoComplete,Calendar, Container,Menu,Slider,TreeView.另一类是几个很有用的几个CSS文件,一个是CSS Page原创 2010-05-01 09:58:00 · 1139 阅读 · 0 评论 -
JavaScript String Replace All
<br />The JavaScript function for String Replace replaces the first occurrence in the string. The function is similar to the php function str_replace and takes two simple parameters. The first parameter is the pattern to find and the second parameter is th原创 2010-08-27 17:35:00 · 1531 阅读 · 0 评论 -
数组去重
<br />试题:<br />有这样一个数组,成员都是数字,例如<br />var a = [1,2,3,4,5,2,3,4,6,7,8];<br />请实现a.distinct()方法,用来给数组a去掉重复值,要求对Array的原型进行扩展方法,并尽可能做到效率最优。<br /><br />考察点:<br />1,考察应试者是否理解原型链<br />2,考察应试者是否由意识的控制算法的时间复杂度,了解应试者对专业课知识的掌握程度<br />3,考察应试者对js数组函数的了解程度<br /><br />答案转载 2010-11-27 10:40:00 · 2389 阅读 · 1 评论