<!DOCTYPE html>charset="utf-8"W3Cschool教程(w3cschool.cn)点击按钮创建一个 DETAILS 元素。onclick="myFunction()"尝试一下function myFunction(){var x = document.createElement("DETAILS");var t = document.createTextNode("一些额外信息...");x.appendChild(t);document.body.appendChild(x);};