单项选择题
A.<ul id="color"> <li onclick="changeColor(this.innerText);">Black</li> <li onclick="changeColor(this.innerText);">Red</li> </ul>
B.<ul id="color"> <li onclick="changeColor(this.style.color);">Black</li> <li onclick="changeColor(this.style.color);">Red</li> </ul>
C.<ul id="color"> <li><a onfocus="changeColor(this.innerText);">Red</a></li> <li><a onfocus="changeColor(this.innerText);">Black</a></li> </ul>
D.<ul id="color"> <li><a onfocus="changeColor(this.innerText);">Red</a></li> <li><a onfocus="changeColor(this.innerText);">Black</a></li> </ul>
单项选择题 You create a Web page that contains the following code. You need to provide the following implementation. Each time the AddFile button is clicked, a new div element is created. The new div element is appended after the other file upload div elements and before the AddFile span. Each new element has a unique identifier. Which code segment should you use?()
单项选择题 YoucreateaWebpagethatcontainsthefollowingdiv.YouhaveaJavaScriptarraynamedimageurlsthatcontainsalistofimageURLs.YouneedtowriteaJavaScriptfunctionthatwillinsertimagesfromtheURLsintotarget.Whichcodesegmentshouldyouuse?()
单项选择题 A Web page includes the HTML shown in the following code segment. You need to write a JavaScript function that will dynamically format in boldface all of the hyperlinks in the ref span.Which code segment should you use?()