比如<button>查询</button><button>添加</button>还有许多button,只是innerText不同var buttons  = $("button[text()='添加']");这样就会抛出异常。
我知道可以根据 ($("button:nth-child(2)")这样来选择第二个。但是我觉得用文本来选择更加直观。不知道 有没有办法。