简体   繁体   English

如何获取内部html值

[英]How to get the inner html value

<span style="color: red"> advertising cctv/bust</span>
<span style="color: red">a</span>tion

how to get the value from this text 如何从文本中获取价值

I used replace function but it removing only once and it ignoring second one 我使用了替换功能,但它只删除了一次,而忽略了第二个

how can i do this one 我该怎么办

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM