HTML
CSS
JavaScript
Vue
React
Python
PHP
Java
.Net
Java9手册
PHP手册
CSS3手册
jQuery手册
源代码
在线运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>菜鸟教程(cainiaoplay.com)</title> </head> <body> <p>这边引用了 WWF's 站点的内容:</p> <blockquote id="myBlockquote" cite="http://www.worldwildlife.org/who/index.html"> For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally. </blockquote> <p>点击下面的按钮,返回以上引用cite属性的值。</p> <p id="demo"></p> <button onclick="myFunction()">点我</button> <script> function myFunction(){ var x = document.getElementById("myBlockquote").cite; document.getElementById("demo").innerHTML=x; } </script> </body> </html>
动行结果