I am using eclipse for java coding. Can I use JavaScript in eclipse? If yes, How to use it? Please give ideas.
什么是使用Javascript的主要座右铭.它如何用于开发应用程序.我知道Html.它将如何帮助我学习Javascript.与JS和html的任何关系.
var theNewParagraph = document.createElement('p');
var theBoldBit = document.createElement('b');
var theBR = document.createElement('br');
theNewParagraph.setAttribute('title','The test paragraph');
var theText1 = document.createTextNode('This is a sample of some ');
var theText2 = document.createTextNode('HTML you might');
var theText3 = document.createTextNode('have');
var theText4 = document.createTextNode(' in your document');
theBoldBit.appendChild(theText2);
theBoldBit.appendChild(theBR);
theBoldBit.appendChild(theText3);
theNewParagraph.appendChild(theText1);
theNewParagraph.appendChild(theBoldBit);
theNewParagraph.appendChild(theText4);
document.getElementById('someElementId').appendChild(theNewParagraph);
Run Code Online (Sandbox Code Playgroud)
此外,任何人都可以解释这个帮助我?