JS:使用JQuery通过选择标签触发方法
Copyright Notice: This article is an original work licensed under the CC 4.0 BY-NC-ND license.
If you wish to repost this article, please include the original source link and this copyright notice.
Source link: https://v2know.com/article/932
JS:使用JQuery通过选择标签触发方法
HTML部分:
<button>点击我</button>
JavaScript部分:
$("button").click(function() {
alert("Hello World!");
});
This article was last edited at 2023-05-10 06:39:15