Home  >  Article  >  Web Front-end  >  js binding events with parameters and manually triggering events_javascript skills

js binding events with parameters and manually triggering events_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:28:36880browse

1.html code

Copy code The code is as follows:


< ;div id="tab">

Title 1


Title 2


Title 3

Title 4


div>

Content 1

Content 2

Content 3

Content 4




2.js part
Copy code The code is as follows:


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