使用javascript标记筛选responseText
我从使用javascript标记筛选responseText,javascript,jquery,prototypejs,prototype,Javascript,Jquery,Prototypejs,Prototype,我从Prototype中得到一个responseText,其中包含很多JavaScript标记 如果我使用console.log(responseText)它会显示JavaScript标记。此外,我还处理responseText以获得特定的类内容 例如: var result = jQuery(".category-products",jQuery(response.responseText)).html(); 然后我使用jQuery('.category products').html(re
Prototype
中得到一个responseText,其中包含很多JavaScript标记
如果我使用console.log(responseText)
它会显示JavaScript标记。此外,我还处理responseText以获得特定的类内容
例如:
var result = jQuery(".category-products",jQuery(response.responseText)).html();
然后我使用jQuery('.category products').html(result)代码>
但是通过这样做,我并没有得到JavaScript。我想进一步评估一下。请帮忙
抱歉,英语不好。您是否尝试过jQuery(“.category products”).text(结果);是的,我试过了,但它只是简单地把简单的文本。当我过滤响应文本并提醒它时。它没有给我任何Javascript标记;现在是eval中的问题…最终问题解决了jQuery(response.responseText).filter(.responseid”).each(函数(i){jScript+=jQuery(this.html();});