Py学习  »  Jquery

使用jQuery替换元素

snowflakes74 • 3 年前 • 1366 次点击  

我在powerapps门户中呈现了以下HTML,我想替换所有出现的

    <font size = 3>..... </font>

具有

    <div class="legend">... </div> 

我尝试了下面的代码片段,但它没有取代它:

    var $descBox = $("<font size = 3>"); $descBox.replaceAll("<div class='legend well'>");
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/133368
文章 [ 1 ]  |  最新文章 3 年前