回复 7楼 冰镇柠檬汁儿
我试试了 保存是html的格式没有出错,保存了js格式就出现了错误
2015-10-19 09:00
程序代码:
<html>
<head>
<script scr="library.js"></script>
<title>客户端</title>
</head>
<body>
<script>
function moveon(){
var answer=confirm("准备好了吗?");
if(answer){
window.location="}
}
setTimeout(moveon,60000);
</script>
</body>
</html>

2015-10-19 12:58

2015-10-19 21:20
程序代码:package ch01;
class B extends A//派生类
{
public void print(){
System.out.println("子类中的print");
}
public static void main(String[] args)
{
A a=new B();
a.print();//此处为什么调用的是类A的print()?
B b=new B();
b.print();
}
}
class A//基类
{
public A(){
System.out.println("调用父类构造方法!");
}
public void print(){
System.out.println("类A中的print");
}
}
2015-10-22 12:32
就这我还是没有明白

2015-10-24 10:48



2015-10-24 10:48

2015-10-24 21:40

2015-10-24 21:45

2015-10-24 21:46
我明白你说的,但是我使用cs6软件编译的时候就会出错,可能是软件我没有设置好,我再看看。
2015-10-26 08:08