我试图让我的ajax请求工作,但只返回0;不确定我没有得到响应的确切原因。我并不完全理解my_ajax_pagination()函数是如何处理的。我只是在网上寻找其他的解决方案,并找到了类似的东西。) {
var region = $(this).closest('a').data('region');
jQuery.ajax
在functions.php中,我首先本地化我的脚本: wp_enqueue_script( 'product-selector', get_template_directory_uri调用的脚本,我有: global $wpdb; // this is how you get access to the database,如果您查看演示,ajax只