根据jQuery官方文件所提及.html()是使用 This method uses the browser's innerHTML property,既然使用的是相同方法,为何结果不一样?
另外jQuery中.text() .html()有什么分别?
console.log($("#showMD5").html());
console.log($("#showMD5").text()); //.html() .text()得出相同结果
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
jquery-1.11.3中html的实现方式: