我在使用JavaScript中的字符串中获取类名时遇到问题.
例如:
var ddd="<p class='Box_title'>Heading text here...</p>";
从那以后我想得到p标签的类名.
javascript css
css ×1
javascript ×1