代码如下,如何把下面代码中Guest - Guest 增加一个A标签?目前只知道如何取这个值.我想把html 中所有没有被包装成标签的都给包一层,这样可以便于后续操作
Guest - Guest
- Role = $everyone, $unauthenticated
-
Has access to the "List projects" function, but none of the others
var test=$("#test").contents().filter(function() {//取值
return this.nodeType === 3;
})[0].nodeValue;
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
demo