<span class="here one-two-sdfs test">click1</span> <br />
<span class="here one-two-3er te3st">click2</span> <br />
<span class="here one-two-sdwrer test">click3</span> <br />
<span class="here one-two-s-ere test">click4</span> <br />
<span class="here one-two-wer-r test">click5</span> <br />
<span class="here one-two test">click6</span> <br />
$('.here').click(function(){
var one-two = ????
alert(one-two);
})
我想 -
,如果我在CLICK1然後警報顯示單擊我一,二,SDFS
如果我點擊on click2然後告訴我看看one-two-3er
如果我點擊CLICK3然後警報顯示我一,二,sdwrer
,如果我在CLICK4然後警報顯示單擊我一,二,S-ERE
如果我點擊click5然後告訴我看看one-two-wer-r
如果我在click6然後警報顯示單擊我一兩
我想表演類開始一兩 我如何使它?:)
您是否嘗試過對正則表達式進行任何閱讀並努力工作? – 2012-07-25 09:39:27