标签:code rgba var 表单元素 col htm innertext selector div
var div = document.querySelector("div"); console.log( div.innerText );
div.innerText = ‘这是div‘;
div.innerHTML = ‘<b>这是div</b>‘;
var input = document.querySelector("input"); console.log(input.value); input.value = "嘿嘿"
标签:code rgba var 表单元素 col htm innertext selector div
原文地址:https://www.cnblogs.com/mrxiachongyu/p/14259786.html