1、代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery的-each方法</title> <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script>