.bind( ‘点击’,函数(){
window.open($(本).find( ‘pc_more’)HTML());
});
});
代码的这一部分是否有东西告诉它在新页面中打开链接?我可以在同一窗口中放置一些代码来打开链接吗?
最佳答案
您正在寻找:
.bind('click',function(){
window.location = $(this).find('.pc_more').html();
});
…假设.pc_more匹配的元素确实有一个链接作为其HTML.