我刚刚制作了一个带目标的html页面 _self
但是现在我有太多链接,我想要更改所有链接目标_blank,这对我来说很难.是否有任何javascript适用于所有只写1次?
因为我的代码太长而且需要花费太多时间来更改所有链接.有什么伎俩吗?
像这样
<a href="http://www.google.com"></a>
<a href="http://www.facebook.com"></a>
<a href="http://www.gmail.com"></a>
<a href="http://www.twitter.com"></a>
<a href="http://www.stackoverflow.com"></a>
<a href="http://plus.google.com"></a>
Run Code Online (Sandbox Code Playgroud)