今天测试了$.ajax()方法: $("a").click(function(){ $.ajax({ url:"MyJsp.jsp", type:"GET", success:function(msg){ $("body").append(msg); }参数url是目标地址源,type:是请求提交类...
分类:
其他好文 时间:
2014-09-16 23:30:51
阅读次数:
214
protected override void WndProc(ref Message m) { const int WM_SYSCOMMAND = 0x0112; const int SC_CLOSE = 0xF060; if (m.Msg == WM_SYSCOMMAND...
分类:
其他好文 时间:
2014-09-14 23:35:17
阅读次数:
264
??
Ext JS消息提示框主要包括:alert、confirm、prompt、show
1、Ext.MessageBox.alert()
调用格式:
alert( String title, String msg, [Function fn], [Object scope] )
参数说明:
title:提示框的标题。
msg:显示的消息内容。
[Fun...
分类:
其他好文 时间:
2014-09-13 21:30:25
阅读次数:
244
Jquery解析json字符串、json数组
解析json字符串、json数组
{"ret": 0, "msg": "", "is_lost":0, "nickname": "小米", "gender": "男", "province": "广东", "city": "广州", "yea...
分类:
Web程序 时间:
2014-09-13 18:48:45
阅读次数:
253
$.ajax({ type: "POST", url: "/index.php", data: data, dataType: "json", success: function(r_msg){ if(r_msg.status==0){alert("fail"); }...
分类:
其他好文 时间:
2014-09-13 15:47:45
阅读次数:
145
//定义结构体//首字母大写 , json:"msg_id" 是 tagtype Message struct { MsgId string `json:"msg_id"` Content string `json:"content"`}//json 序列号反序列化func T3_1() { m.....
分类:
Web程序 时间:
2014-09-12 20:31:33
阅读次数:
272
1、获取工程到当前路径git clone ssh://gerrit-server/.git2、进入工程目录cd 3、安装gerrit的changeID自动生成hook脚本scp -p gerrit-server:hooks/commit-msg .git/hooks/chmod u+x .git/h...
分类:
其他好文 时间:
2014-09-12 16:59:33
阅读次数:
658
###Linux IPC###
---------------
##消息传递##
- 信号: 非亲缘,传递信息少,只能是控制信息而不是数据信息
- 管道: 要亲缘,无边界字节流,先进先出,消耗掉就没了,没有窥探功能MSG_PEEK
- FIFO: 非亲缘,无边界字节流,先进先出,消耗掉就没了,没有窥探功能MSG_PEEK
- Socket: 非亲缘,边界可有可...
分类:
系统相关 时间:
2014-09-11 21:01:22
阅读次数:
292
//设置map参数,innerTable,outTable对应的表名
public String sendDetail(){
pager = getStartPager();
if( null !=msg && msg.equals("succ")){
map.put("innerTable","bs_sent_inner" );
map.put("outTabl...
分类:
其他好文 时间:
2014-09-10 12:37:40
阅读次数:
262
简单来说,备忘录模式就是支持回退操作。假设让一个Notepad支持回退操作,如何实现呢? 首先需要一个备忘录类。 public class Memento { private string _msg; public Memento(string msg) { _msg = msg; } publ.....
分类:
其他好文 时间:
2014-09-10 00:21:29
阅读次数:
217