在js中使用for循环的时候使用dwr,经常在还没有获取数据的时候就已经执行dwr函数了,这个是因为dwr是异步执行,也就是说在还没有for循环的时候就已经把所有的dwr执行了,也就是说dwr取的数据是第一个for时的数据,解决问题的办法是加如下代码
DWREngine.setAsync(false);
...
Tag : dwr,异步,同步,循环,js
lt;%@ page language=quot;javaquot; import=quot;java.util.*quot; pageEncoding=quot;UTF-8quot;%gt;
lt;%@ taglib prefix=quot;squot; uri=quot;/struts-tagsquot;%gt;
lt;!DOCTYPE HTML PUBLIC quot;-//W3C//DTD HTML 4.01 Transitional//ENquot;gt;
lt;htmlgt;
lt;headgt;
lt;titlegt;Loginlt;/titlegt;
...
Tag : jsp,音乐文件,object
在php中很少涉及GUI,资料也非常少,官方有一些说明
http://gtk.php.net/
java
public class TestFrame implements ActionListener {
/**
* @param args
*/
Frame f = new Frame(quot;testquot;);
public static void main(String[] args) {
// TODO Auto-generated method stub
TestFrame tf = new TestFrame();
...
Tag : java,php,addWindowListener
关于对txt文件的读写java用起来真的是十分的麻烦,很多代码现在也不是很理解
import java.util.Properties;
import java.io.*;
public class PropertiesFile {
public static void main(String [] args){
Properties settings = new Properties();
try{
settings.load(new FileInputStream(quot;count.txtquot;));
}catch(Exception e){
...
Tag : java,php,Runtime,Properties,Properties,Enumeration



Comment:


