Home  >  Article  >  Web Front-end  >  javascript 打字效果的文字特效_文字特效

javascript 打字效果的文字特效_文字特效

WBOY
WBOYOriginal
2016-05-16 18:11:371354browse

本节代码主要使用了 onMousedown 事件和 event.button 属性,主要功能和用法如下。
  • setTimeout 方法,在执行时是在载入后延迟指定时间后,去执行一次表达式,仅执行一次。
  • charAt 方法返回一个字符值,该字符位于指定索引位置。字符串中的第一个字符的索引为0,第二个的索引为1,等等。超出有效范围的索引值返回空字符串。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn