<a myattr="something">anchor</a>
<a>anchor</a>
$(a[myattr]) does not work
$(a[myattr!="") does not work
$(a[myattr!==undefined) does not work
什么可以让那些“myattr”被定义并等于某些东西的锚点起作用?
<a myattr="something">anchor</a>
<a>anchor</a>
$(a[myattr]) does not work
$(a[myattr!="") does not work
$(a[myattr!==undefined) does not work
什么可以让那些“myattr”被定义并等于某些东西的锚点起作用?