相当于这个原型(prototype)片段的 jQuery 是什么?
if ($('recent_forum_topics') != undefined) {
new Ajax.Updater({
success: 'recent_forum_topics'
},
'/welcome/recent_forum_topics');
}
最佳答案
更简单,.load()
:
$('#recent_forum_topics').load('/welcome/recent_forum_topics');
关于jquery - 将原型(prototype)转换为 jQuery,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6433274/