常用知識 一

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 = ?

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