常用知识 一

var value=window.parent.getMethod();//调用父窗口的方法
javascript:window.location="地址";//在当前窗口打开新的窗口
$.getJSON('servlet地址',function(Jsondata){//请求servlet解析为json数据格式

})


String sql="select * from table t where t.id %s ?"
sql=String.format(sql,"like");

System.out.println(sql)//输出select * from table t where t.id like ?

sql=String.format(sql,"=");
System.out.println(sql)//输出select * from table t where t.id = ?

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章