我的ajax中的php输出如下值 arrList[intIndex++] = "功能 ";arrList[intIndex++] = "苹果手机 ";arrList[intIndex++] = "价格 ";arrList[intIndex++] = "手机 ";arrList[intIndex++] = "苹果手机的价格 ";arrList[intIndex++] = "苹果手机的功能 "; 我想让这些东西作为js代码执行,在客户端怎么做?比如客户端的js代码是这样的if(xmlHttp.readyState==4){
var server=xmlHttp.responseText;
(这里我想让php服务端输出的上面的东西作为js执行下来)
}如果作为js执行下来即:if(xmlHttp.readyState==4){
var server=xmlHttp.responseText;arrList[intIndex++] = "功能 ";arrList[intIndex++] = "苹果手机 ";arrList[intIndex++] = "价格 ";arrList[intIndex++] = "手机 ";arrList[intIndex++] = "苹果手机的价格 ";arrList[intIndex++] = "苹果手机的功能 "; } 这样描述懂了吗??怎样做呢