Connection connection = (Connection) dbcp.getConn(); int affectRows = qr.update(connection, sql,params); BigInteger id =...
分类:
其他好文 时间:
2014-10-28 23:43:25
阅读次数:
360
UserProfile._meta.fields
[,
,
,
,
,
params = UserProfile._meta.fields
for t in range(len(params)):
print params[t].name, params[t].verbose_name, params[t]._choices#获取model中的choic...
分类:
其他好文 时间:
2014-10-28 12:12:51
阅读次数:
244
1 document.getElementById('params_box').style.display = 'block';修改为1 document.getElementById('params_box').style.display = 'table-row';
分类:
编程语言 时间:
2014-10-27 12:37:14
阅读次数:
320
1、配置文件配置数据库选项,application/configs/application.ini中添加
[mysql]
db.adapter = PDO_MYSQL
db.params.host = localhost #数据库服务器名称
db.params.username = root ...
分类:
其他好文 时间:
2014-10-25 20:09:57
阅读次数:
236
函数原型:$.post(url, params, callback)url是提交的地址,eg: "sample.ashx"params是参数,eg: { name:"xxx" , id:"001" }callback是回调函数,eg: function(msg){ alert(msg); }注意1:...
分类:
Web程序 时间:
2014-10-22 21:59:15
阅读次数:
368
在ASP.NET编程中,有三个比较常见的来自于客户端的数据来源:QueryString, Form, Cookie 。 我们可以在HttpRequest中访问这三大对象。QueryString: 获取包含在URL中的一些参数; 获取get方式提交的表单数据 (在提交表示如不指定method类型,则默...
分类:
其他好文 时间:
2014-10-22 12:34:48
阅读次数:
232
用给自己记录用defmonitor_work_1(content):dict_1={‘service‘:‘rdc_monitor‘,‘checkpoint‘:‘rdc_monitor_log‘,‘title‘:content,‘content‘:content,‘cluster‘:‘public‘,‘grade‘:‘2‘}params=urllib.urlencode(dict_1)urllib.urlopen(‘http://alert.sae.sina.com.cn/new/‘,params)
分类:
Web程序 时间:
2014-10-21 19:49:41
阅读次数:
168
看一段普通的代码,我们访问controller中的一个方法后,重定向到另外一个controller或者视图。 @RequestMapping(params="method=index") public ModelAndView index() { RedirectView ...
分类:
编程语言 时间:
2014-10-20 16:53:07
阅读次数:
371
============问题描述============ 使用httpclient4.2.5写了一个服务类,在Java跑的各种欢脱,到了android就报错:Causedby:java.lang.IncompatibleClassChangeError:org.apache.http.params....
分类:
移动开发 时间:
2014-10-19 23:11:01
阅读次数:
501
《python基础教程(第二版)》学习笔记 函数(第6章)创建函数:def function_name(params): block return values记录函数:def function_name(params): 'NOTE' #注释 block return valuesfunction...
分类:
编程语言 时间:
2014-10-19 16:52:40
阅读次数:
179