What do you mean by "javascript:;" in the tag? Change Password There is a saying that: the code will be parsed, the code related to the current tag will be executed, and the code not related will be skipped Is that how it is understood?

What do you mean by "javascript:;" in the tag? Change Password There is a saying that: the code will be parsed, the code related to the current tag will be executed, and the code not related will be skipped Is that how it is understood?


Javascript: is a pseudo protocol. Other pseudo protocols include mail: & nbsp; Tel: & nbsp; file: & nbsp; and so on
≪ a & nbsp; id = & quot; jspswedit & quot; & nbsp; class = & quot; set item & amp; quot; & nbsp; javascript:; & quot; & gt; change password & lt; a & gt;
Javascript: means to execute a JavaScript code when the & lt; a & gt; default action is triggered, while & nbsp; javascript:; means to execute nothing, so there is no response when you click & lt; a & gt
In this case, an event callback is bound to & lt; a & gt; to perform business, such as:
document.getElementById (&# 39; jspswedit & # 39;). Addeventlistener (&# 39; click & # 39;, & nbsp; function (E) & nbsp; {& nbsp; & nbsp; e.preventdefault(); & nbsp; & nbsp; / / when & lt; a & gt; trigger click, process business}, & nbsp; false);