<!DOCTYPE html>
<html>
<body>
<form name=myform>
<input type=button value="Try it now"
onClick="
s=prompt('Enter your first name','Name');
n=prompt('Enter your first name','Name');
document.write('hello'+s +n+' !')">
</form>
</body>
</html> '
在上面的代码中,我想用下面的代码替换 'hello'。在你好的地方放上这段代码:
<div class="hreview">
<span class="item">
Reviewed by <span class="reviewer">john paul</span>
Rating:
<span class="rating">5</span>
</div>
它应该显示代码而不格式化我在你好地方写的代码。