<script>
$(document).ready(function() {
var k = $('.tren li').filter(':not(:first):not(:last)');
alert(k[0]);
});
</script>
它返回一条类似于 [OBJECT HTMLLI ELEMENT]
的消息。如何检索对象的值?
最佳答案
$(k[0]).text();
关于javascript - 从对象中检索数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6169749/