摘要: fromxml.dom.minidomimportDocumentdoc=Document()root=doc.createElement("root")card=doc.createElement("card")card.setAttribute('id','2001000')txt=doc.createElement("txt")txtbody=doc.createTextNode("thisistxtbody")txt.appendChild(txtbody)card.appe 阅读全文
posted @ 2012-05-26 19:54 ajaxj 阅读(175) 评论(0) 推荐(0)
摘要: python:#-*-coding:utf-8-*-fromflaskimportFlask,render_template,url_for,session,flash,request,json,jsonify#....appinit@app.route('/b2')defb2():returnrender_template('b2.html')@app.route('/usersave',methods=['GET','POST'])defusersave():ifrequest.method=='POS 阅读全文
posted @ 2012-05-23 01:08 ajaxj 阅读(556) 评论(0) 推荐(0)
摘要: html:<divid="app"><divid="create-name"><inputid='new-name'/><buttonid="btn">click</button></div></div>js:$(function(){varAppView=Backbone.View.extend({el:$('#app'),events:{//定义button和inputenter事件"keypress#ne 阅读全文
posted @ 2012-05-23 00:29 ajaxj 阅读(250) 评论(0) 推荐(0)
摘要: 使用3.6.1时,log日志出现:WARN [org.hibernate.util.DTDEntityResolver] – recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!警告是MAP配置文件的dtd URL改变了以前的:http://hibernate.sourceforge.net/hibernate-ma 阅读全文
posted @ 2012-05-14 00:05 ajaxj 阅读(798) 评论(0) 推荐(0)
摘要: 这 Blog 只记录,工作中用不到,但是值得自己了解,学习的一些语言,利用空闲,晚上临时消化敲打的一些片断记录 阅读全文
posted @ 2012-04-20 23:46 ajaxj 阅读(89) 评论(0) 推荐(0)