上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 33 下一页
摘要: 自django1.3开始:render()方法是render_to_response的一个崭新的快捷方式, 前者会自动使用 RequestContext。而后者必须coding 出来,这是最明显的区别,当然前者更简洁。 return render_to_response('blog_add.html 阅读全文
posted @ 2016-12-09 23:51 Dus 阅读(1529) 评论(0) 推荐(0) 编辑
摘要: JS正则 test :判断字符串是否符合规定的正则 rep = /\d+/; rep.test("asdfoiklfasdf89asdfasdf") true rep = /^\d+$/; rep.test("asdfoiklfasdf89asdfasdf") true Script:获取匹配的数据 阅读全文
posted @ 2016-12-09 16:19 Dus 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 创建django工程 django admin startproject 【工程名称】 mysite mysite 对整个程序进行配置 init settings 配置文件 url URL对应关系 wsgi 遵循WSIG规范,uwsgi + nginx manage.py 管理Django程序: p 阅读全文
posted @ 2016-12-08 21:12 Dus 阅读(229) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/mozes1/article/details/40589405 阅读全文
posted @ 2016-12-08 00:29 Dus 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://blog.csdn.net/kellyseeme/article/details/50644893 风格指南:http://zh google styleguide.readthedocs.io/en/latest/google python styleguide/python 阅读全文
posted @ 2016-12-02 11:57 Dus 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 筛选 $(' i1').next() //下一个紧邻的同辈元素 HelloHello AgainAnd Again $("p").next() // 输出 [ Hello Again, And Again ] 因为都是P标签没有指定是第几个P标签,所以会打印第一个P标签后面的全部 $(' i1'). 阅读全文
posted @ 2016-11-29 18:03 Dus 阅读(233) 评论(0) 推荐(0) 编辑
摘要: jQuery API查询网址 http://jquery.cuishifeng.cn/ Dom和jquery相互装换 jquery对象[0] = Dom对象 Dom对象 = $(Dom对象) jQuery选择器 1. id $(' id') 2. class $(".c1") 3. 标签 f f f 阅读全文
posted @ 2016-11-28 17:39 Dus 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 执行下 make clean /usr/local/php5/bin/phpize ./configure with curl with php config=/usr/local/php5/bin/php config make make install 在/etc/php.ini里添加 exte 阅读全文
posted @ 2016-11-27 22:33 Dus 阅读(298) 评论(0) 推荐(0) 编辑
摘要: DOM 查找 直接查找 var obj = document.getElementById('i1') 间接查找 文件内容操作: innerText 仅文本 innerHTML 全内容 value input value获取当前标签中的值 select 获取选中的value值(selectedInd 阅读全文
posted @ 2016-11-25 17:03 Dus 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 作用域 1. JavaScript以函数为作用域 2. 函数的作用域在函数未被调用之前,已经创建 3. 函数的作用域存在作用域链,并且也是在被调用之前创建 示例一 xo = "alex"; function func(){ // var xo = 'eric'; function inner(){ 阅读全文
posted @ 2016-11-25 16:54 Dus 阅读(171) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 33 下一页