简体   繁体   中英

JQuery / Vanilla Javascript translation

我已经用 vanilla javascript 编写了我的大部分网站,为了保持一致性,有人可以建议我如何翻译以下内容...谢谢!

 $("a").click(function(){ $("p").fadeOut(3000); });

https://stackoverflow.com/a/17656038/3599496

View that link, it has the answer you're looking for. For the click event, view:

http://www.w3schools.com/jsref/event_onclick.asp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM