日期:2014-05-16  浏览次数:20392 次

超链接点击后链接本页 但显示超链接的文字改变
超链接点击后链接本页   但显示超链接的文字改变
用 <a   href= '# '   name= 'aa '   > yes </a>
比如点击后   yes   变为   no   的js代码这么写请大家指点一下

------解决方案--------------------
<a href= '# ' name= 'aa ' onclick= 'this.innerText= "no " '> yes </a>
------解决方案--------------------
<a href= '# ' name= 'aa ' onclick= 'this.innerText=(this.innerText== "no "? "yes ": "no ") '> yes </a>