<!DOCTYPE html>点击按钮创建带有指定值的 METER 元素。onclick="myFunction()"尝试一下注意:Internet Explorer 和 Safari 5(及其之前的版本)不支持 meter 对象。function myFunction(){var x = document.createElement("METER");x.setAttribute("min", "0");x.setAttribute("max", "100");x.setAttribute("value", "65");document.body.appendChild(x);};