Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用javascript标记筛选responseText_Javascript_Jquery_Prototypejs_Prototype - Fatal编程技术网

使用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();});