Google chrome extension Chrome扩展:使用本地PHP文件

Google chrome extension Chrome扩展:使用本地PHP文件,google-chrome-extension,Google Chrome Extension,My Popup.js正在将一个值传递给我的本地php文件进行处理,然后结果将显示在Popup.html上,如下所示: $.get("get_charities.php", {scope: "ALL", m_val: formatted_val},function(charity_arr){ $('#convertor_content .result').remove(); console.log(charity_arr); for(var i i

My Popup.js正在将一个值传递给我的本地php文件进行处理,然后结果将显示在Popup.html上,如下所示:

$.get("get_charities.php", {scope: "ALL", m_val: formatted_val},function(charity_arr){
        $('#convertor_content .result').remove();
        console.log(charity_arr);
        for(var i in charity_arr){
            $('#convertor_content').append( "Enough to "+ charity_arr[i].pre_text+" <a href='" + charity_arr[i].url + "' target='_blank'>" + Math.round(charity_arr[i].impact_value) + " " + charity_arr[i].post_text + "</a>" + "<br>" + "<hr>" );
        }
    });
$.get(“get_charities.php”,{scope:“ALL”,m_val:formatted_val},函数(charity_arr){
$('#convertor_content.result').remove();
console.log(charity_arr);
for(慈善事业中的var i){
$(“#convertor_content”).append(“足够”+charity_arr[i]。pre_text++“+”
“+”
”; } });

由于我使用的是本地php文件,如何测试popup.html是否正常工作

不知道你在问什么。Chrome不解释PHP,您应该有一个运行PHP的本地web服务器,并通过
访问它。”http://localhost/get_charities.php“
URL。也不清楚如何在每个用户上安装本地服务器可能的副本