function rec(){
var score=prompt("张三","成绩");
if(score>=90){
document.write("很棒");
}
else if(score<90){
document.write("继续加油");
}
else if(score>=75){
document.write("继续加油");
}
else(score<75){
document.write("要努力");
}
}
这段代码哪里有错。求指导
var score=prompt("张三","成绩");
if(score>=90){
document.write("很棒");
}
else if(score<90){
document.write("继续加油");
}
else if(score>=75){
document.write("继续加油");
}
else(score<75){
document.write("要努力");
}
}
这段代码哪里有错。求指导
2016-07-22
window.open('http://imooc.com','_blank','width=600,height=400,top=100px;left=0');
2016-07-22
var mychar= document.getElementById("con");
mychar.style.color="red";
mychar.style.backgroundColor='#CCC';
mychar.style.width='300px';
mychar.style.fontSize='50px';
mychar.style.color="red";
mychar.style.backgroundColor='#CCC';
mychar.style.width='300px';
mychar.style.fontSize='50px';
2016-07-22
已采纳回答 / Lyh_航
<!DOCTYPE html><html> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="text/javascript"> function openWindow() { va...
2016-07-22
<script type="text/javascript">
function rec(){
var mymessage=confirm( "你有丁丁吗" ) ;
if(mymessage==true)
{
document.write("你是女士!");
}
else
{
document.write("你是男士!");
}
}
</script>
function rec(){
var mymessage=confirm( "你有丁丁吗" ) ;
if(mymessage==true)
{
document.write("你是女士!");
}
else
{
document.write("你是男士!");
}
}
</script>
2016-07-22
已采纳回答 / linglingchenchen
var value = prompt("一些提示。。。");if(value == "" || value == null) {// 如果取消输入则会返回null}
2016-07-22