Discuss / JavaScript / Domy

多米船长

#1 Created at ... [Delete] [Delete and Lock User]

// 获取<p>javascript</p>节点: var js = document.getElementById('test-js');

// 修改文本为JavaScript: js.innerText='JavaScript'

// 修改CSS为: color: #ff0000, font-weight: bold // TODO: js.style.color='#ff0000'; js.style.fontWeight='bold';


  • 1

Reply