数据库查询行转列1.原数据库值stdname stdsubject result张三 语文 80张三 数学 90张三 物理 85李四 语文 85李四 ...
分类:
数据库 时间:
2014-07-18 16:17:41
阅读次数:
216
Javascript刷新页面的几种方法:1 history.go(0)2 location.reload()3 location=location4 location.assign(location)5 document.execCommand('Refresh')6 window.navigate...
分类:
编程语言 时间:
2014-07-18 16:15:24
阅读次数:
219
javascript refresh page 几种页面刷新的方法本节内容:Javascript刷新当前页面的方法与实例。window.location.reload(),window.history.go(0)和document.execCommand(''Refresh''),这三个方法是最快速...
分类:
编程语言 时间:
2014-07-18 15:23:57
阅读次数:
199
在配置中加上location ~ .*\.(php|php5)?$ {fastcgi_pass 127.0.0.1:9000;fastcgi_read_timeout 700;fastcgi_index index.php;include fastcgi.conf;}
分类:
Web程序 时间:
2014-07-18 15:17:43
阅读次数:
335
location语法:location [=|~|~*|^~] /uri/ { … } 默认:否上下文:server这个指令随URL不同而接受不同的结构。你可以配置使用常规字符串和正则表达式。如果使用正则表达式,你必须使用 ~* 前缀选择不区分大小写的匹配或者 ~ 选择区分大小写的匹配。确定 哪个l...
分类:
其他好文 时间:
2014-07-18 10:29:57
阅读次数:
292
$route-$routeProvider服务-依赖ngRoute模块$route能够在路径发生改变的时候,渲染不同的视图,调用不同的控制器.它监测了$location.url(),然后根据路径来匹配相应的路由,路由的定义方法详见$routeProvider的API.$route通常和$routeP...
描述:通过将函数作为参数,使得功能类似的函数实现可以整合到同一个函数。Before 1 def getAdd(lst): 2 result = 0 3 for item in lst: 4 result += item 5 return result 6 7...
分类:
编程语言 时间:
2014-07-17 23:34:29
阅读次数:
374
描述:对于函数foo,使用修饰器修饰,在执行foo函数的同时统计执行时间。这样其他函数都可以使用此修饰器得到运行时间。(有返回值和没有返回值的函数要用不同的修饰器似乎)(对于有返回值的函数,不确定用result存储实际函数执行结果再最终返回的方法是不是恰当) 1 import time 2 3 d....
分类:
编程语言 时间:
2014-07-17 23:19:37
阅读次数:
284
http://zhidao.baidu.com/link?url=I9E16OYfxovPHqBrRWhYCI9TYNG_X-Whg_X7QrJiOBXBGEwi-6WYsC-Zi4Jcg9zd3yeMwedXcYuUBC79mPeu5q———————————————————————————————...
分类:
系统相关 时间:
2014-07-17 18:13:12
阅读次数:
300
执行到./configure--enable-shared一步时提示:checkinghostsystemtype...Invalidconfiguration`x86_64-unknown-linux-gnu‘:machine`x86_64-unknown‘notrecognized解决办法:cp/usr/share/libtool/config.guess.(覆盖到相关软件自带的config.guess,t1lib在解压包的ac-tools下)cp..
分类:
系统相关 时间:
2014-07-17 15:12:10
阅读次数:
260