摘要: 123 刷新 @csrf_exemptdef test(request): if request.method == 'POST': drugs_id = simplejson.loads(request.POST.get('drugs... 阅读全文
posted @ 2015-10-18 13:03 gopher-lin 阅读(203) 评论(0) 推荐(0) 编辑
摘要: Alt+Enter 自动添加包Ctrl+t SVN更新Ctrl+k SVN提交Ctrl + / 注释(取消注释)选择的行Ctrl+Shift+F 高级查找Ctrl+Enter 补全Shift + Enter 开始新行TAB Shift+TAB 缩进/取消缩进所选择的行Ctrl + Alt + I 自... 阅读全文
posted @ 2015-09-25 21:28 gopher-lin 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 我有两个模板,base.html和index.html,index.html继承自base.html,css文件放在root/static/css目录下。为了在index.html中引入另外一个CSS文件,我在base.html中加入了一个{% block extracss %}{% endbloc... 阅读全文
posted @ 2015-09-24 10:16 gopher-lin 阅读(649) 评论(0) 推荐(0) 编辑
摘要: 12 阅读全文
posted @ 2015-08-28 17:47 gopher-lin 阅读(118) 评论(0) 推荐(0) 编辑
摘要: PHP中的魔术方法总结 :__construct, __destruct , __call, __callStatic,__get, __set, __isset, __unset , __sleep, __wakeup, __toString, __set_state, __clone and _... 阅读全文
posted @ 2015-08-28 17:46 gopher-lin 阅读(215) 评论(0) 推荐(0) 编辑
摘要: dataType不是必需的 阅读全文
posted @ 2015-08-19 22:19 gopher-lin 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1 BitmapImage myBitmapImage = new BitmapImage ( ); 2 myBitmapImage . BeginInit ( ); 3 myBitmapImage . UriSource = new Uri ... 阅读全文
posted @ 2015-08-05 19:53 gopher-lin 阅读(673) 评论(0) 推荐(0) 编辑
摘要: http://www.cxyclub.cn/n/41896/ 阅读全文
posted @ 2015-08-05 18:16 gopher-lin 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 这是在再做一个图片浏览的时候想到的问题,以为在图片浏览的时候有多种不同格式的文件需要打开,因此必须要让程序支持这种功能,假如我们只是打开一个类型的图片 我们可能会这样去写 ArrayList list = new ArrayList();//存放图片 string[] files;//需要打开... 阅读全文
posted @ 2015-08-05 12:52 gopher-lin 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 先介绍一下searchPattern通配符通配符描述*零个或多个字符?正好一个字符举例: ①“*t”搜索 path 中所有以字母“t”结尾的名称 ②“s*”搜索 path 中所有以字母“s”开头的名称①恰好为三个字符的 searchPattern 返回扩展名为三个或三个以上字符的文件。“*.ab... 阅读全文
posted @ 2015-08-05 12:43 gopher-lin 阅读(343) 评论(0) 推荐(0) 编辑