posted @ 2015-10-24 14:19 Yaolina Views(225) Comments(0) Diggs(0) Edit
JS不是那种能够明确指定(变量或常量)类型的程序语言,设定JS数据的值时,即已自动暗示该(常量或变量)的类型,这种设计为JS变量带来很大的灵活性,因为它们的数据类型能随着不同的指派值而转变。举例来说,把数字17指派给变量x时,x的类型就是number(数字),但如果你转变心意,改为指派"sixtee... Read More
posted @ 2015-10-24 13:53 Yaolina Views(130) Comments(0) Diggs(0) Edit
对 错 Read More
posted @ 2015-10-24 12:51 Yaolina Views(153) Comments(0) Diggs(0) Edit
只要用户在任何网页组件上点击鼠标,都会触发onclick事件——每个网页组件均有专属的响应代码。 Read More
posted @ 2015-10-24 10:12 Yaolina Views(288) Comments(0) Diggs(0) Edit
虽然onload事件将应用到整个网页上,但我们只要把它设为标签的属性,因为对浏览器而言,(网页主体)才是可见的内容。 Read More
posted @ 2015-10-24 09:50 Yaolina Views(160) Comments(0) Diggs(0) Edit
alt属性是在你的图片因为某种原因不能加载时在页面显示的提示信息,它会直接输出在原本加载图片的地方,而title属性是在是在你鼠标悬停在该图片上时显示的一个小提示,鼠标离开就没有了,有点类似jQuery的hover。另外,HTML的绝大多数标签都支持title属性,title属性就是专门做提示信息... Read More
posted @ 2015-10-24 09:26 Yaolina Views(211) Comments(0) Diggs(0) Edit