【发布时间】:2010-11-27 16:14:38
【问题描述】:
是否可以将 php 添加到 jquery 函数中?在 ajax 成功时,我使用 .text() 函数在 div 中显示一些文本。
success: function(html) {
msg_each.nextAll('.msg_box:first').text('show some text...').fadeIn(200);
}
通过 jquery,我还想使用 Wordpress 功能:
<?php comments_popup_link('Post Comment', '1 Comment', '% Comments'); ?>
如何将它添加到 .text() 函数中?
【问题讨论】:
标签: php javascript jquery wordpress