userwww;#定义Nginx运行的用户和用户组worker_processes2;#nginx进程数,建议设置为等于CPU总核心数。#error_loglogs/error.log;全局错误日志定义类型#error_loglogs/error.lognotice;#error_loglogs/error.loginfo;#pidlogs/nginx.pid;进程文件events{工作模式与连接数上限wor..
分类:
Web程序 时间:
2014-08-18 18:53:54
阅读次数:
258
#!/bin/bash ### BEGIN INIT INFO # # Provides: location_server # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remote_f...
分类:
系统相关 时间:
2014-08-18 16:03:02
阅读次数:
280
1.document.write( " "); 输出语句2.JS中的注释为//3.传统的HTML文档顺序是:document- >html- >(head,body)4.一个浏览器窗口中的DOM顺序是:window- >(navigator,screen,history,location,docum...
分类:
编程语言 时间:
2014-08-18 16:00:12
阅读次数:
283
vi /etc/nginx/conf.d/default.conf # 删除如下部分的注释, #把一下倒数第二行的/scripts改为你工程目录,如: # fastcgi_param ?SCRIPT_FILENAME ?/usr/share/nginx/html$fastcgi_script_name; location ~ \.p...
分类:
Web程序 时间:
2014-08-18 10:57:14
阅读次数:
246
不要把相等运算符(==)与赋值运算符(=)搞混。以&&运算符隔开的两个条件中的前者为错,则不会检测第二个条件的真假。利用这一点,可以提高脚本的速度。使用带switch的多个条件if(button=="next") window.location = "next.html"; else if(b...
分类:
编程语言 时间:
2014-08-17 22:41:13
阅读次数:
180
LBS-Location Based Service,基于位置的服务。如果要在Web App嵌入地图,差不多可以做成LBS了。zuijiancanting.com的设计理念,是把Top餐厅放在地图上,那么当你到某个地方逛逛,或者有约会,拖拉一下地图就可以找到合适的餐厅。
提供地图API服务的公司很多,国外有GoogleMap,OpenStreetMap,国内有百度地图,腾讯地图,高德地图...
分类:
移动开发 时间:
2014-08-17 21:24:02
阅读次数:
296
http://www.mkyong.com/spring-mvc/spring-mvc-how-to-include-js-or-css-files-in-a-jsp-page/如果注意location是Webroot目录下面的文件夹则需要在映射目录前面加上工程名称
分类:
编程语言 时间:
2014-08-16 20:59:31
阅读次数:
218
打开eclipse时出现无法识别android的项目,即所有android项目均显示红色错误标记。点击菜单Window的Android Virtual Device Manager 插件的标志时出现了Location of the Android SDK has not been setup i.....
分类:
移动开发 时间:
2014-08-16 20:57:41
阅读次数:
332
js方式的页面跳转1.window.location.href方式 2.window.navigate方式跳转 3.window.loction.replace方式实现页面跳转,注意跟第一种方式的区别有3个jsp页面(1.aspx, 2.aspx, 3.aspx),进系统默认的是1.aspx,当我进...
分类:
Web程序 时间:
2014-08-16 18:21:50
阅读次数:
315
hash 模拟url路由function hashdone(){var hash;hash=(!window.location.hash)?"#one":window.location.hash;window.location.hash=hash;var hashStr = location.has...
分类:
其他好文 时间:
2014-08-16 17:03:40
阅读次数:
212