任何人都可以帮助我这几个小时,我不知道这有什么问题,它会返回任何东西。
这是我在jQuery中的代码:
jQuery(document).ready(function($) {
jQuery('#submt').click(function() {
data = {
action: 'choices'
};
$.post(ajaxurl, data, function(response) {
$('#trythis').html(response);
});
return false;
});