jQuery triggers a tag click event

Problem description: Need to jQueryautomatically trigger a certain a标签click event.

Problem: a标签The click event is not firing through the code below.

$("#idbtn").click();

Workaround: Use the following

$('#idbtn')[0].click();

Guess you like

Origin blog.csdn.net/qq_17627195/article/details/132385161