有人知道如何用1329456738.1053,name
格式选择一个ID吗?
非工作示例:http://jsfiddle.net/zep6Y/
<div id="1329456738.1053,name">Some text</div>
<a href="#" class="publish_post" id="1329456738.1053">aaa</a>
$('#1329456738.1053,name').text()
最佳答案
刚刚检查,工作原理:
$('.publish_post').click (function(){
alert (this.id);
alert ($('#1329456738\\.1053\\,name').text());
})
关于jquery - jQuery异国ID选择,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/9692660/