要在jQuery中获取div标签的innerHTML,请将该类与innerHTML一起使用。您可以尝试运行以下代码来学习如何使用jQuery获取div标签的innerHTML-
<!DOCTYPE html> <html> <head> <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("#button1").click(function(){ var one = $('.a').innerHTML; alert(one); }); }); </script> </head> <body> <div class="a">Value one</div> <button id="button1">Get</button> </body> </html>