<html lang="en"> <head> <meta charset="UTF-8"> <title>获取当前页Cookies</title> </head> <body> <div style="width: 160px"> <h2>获取当前页Cookies</h2> <input type="text" id="url" hidden="" placeholder="Enter URL"> <button id="get-cookies" style="font-size: 14px"><span style="color: #ff806c;font-size: 16px;">①、</span> <span style="text-decoration: underline">点击获取当前页Cookies</span> </button> <br/><br/> <button id="send-cookies" style="font-size: 14px"><span style="color: #ff806c;font-size: 16px">②、</span> <span style="text-decoration: underline">点击发送当前页面Cookies</span> </button> <br/><br/> </div> <b>内容展示Cookies: </b> <div style="height: auto; width: auto;word-wrap: break-word;" id="cookie-list"> </div> <script src="popup.js"></script> </body> </html>