一、使用iframe,通过document.write产生历史 代码如下: !DOCTYPE html html head meta charset="utf-8"/ title0/title /head body input type="button" value="加1" onclick="add()" / div id="info" style="border:red 1px solid;width:200px;padding:10px;margin:5px;"0/div /body /html script src="history-0.1.js"/script script var info = document.getElementById('info'); var i ...[ 查看全文 ]
现象 : ... java: 1801: method does not override a method from its superclass @Override... 原因 : Eclipse is defaulting to Java 1.5 and you have classes implementing interface methods (which in Java 1.6 can be annotated with @Override, but in Java 1.5 can only be applied to methods overriding a superclass method). 就是说Java 1.5的编译器默认对父类的方法进行覆盖,采用@Ov...[ 查看全文 ]