<!DOCTYPE html> <html> <head> <script> function Bian(){ x=document.getElementById('text'); c=document.getElementById('but'); if (x.innerHTML.match("Paragraph")) { x.innerHTML="(╯‵□′)╯︵┻━┻"; c.innerHTML="再点"; }else{ x.innerHTML="A Paragraph."; c.innerHTML="点吧"; } } </script> </head> <body> <h1>My Web Page</h1> <p id="text">A Paragraph.</p> <button id="but" onclick="Bian()">点吧</button> </body> </html>