-

xiyueta().note() 属性方法

匹配元素集注释掉
快速上手

xiyueta().note()属性方法,2种调用方式:
1、xiyueta("div").note(); //匹配元素集注释掉
2、xiyueta("div").note("提示文字"); //匹配元素集注释掉

总结:xiyueta().note()方法是xiyueta自有的,匹配元素集给他注释掉
尝试一下>>

  • 代码
  • 效果
<script src="https://www.xiyueta.com/js/xiyueta.min.js"></script>
<script>
var html="<div>11<p>22<span>test<span>test</span></span></p>33</div>"
xiyueta.load(html)
xiyueta("*").note()
$.log(xiyueta.html())
                    </script>

<!--<div>11<p>22<span>test<span>test</span></span></p>33</div>-->