Angularjs是一个前端的Javascript MVC 库和框架,使前端得到更好的设计、维护和测试。它的核心特性有:MVC、双向数据绑定、指令和语义化标签、模块化工具、依赖注入、HTML模板,以及对常用工具的封装,例如$http、$cookies、$location等。本篇体验Angularjs...
分类:
Web程序 时间:
2014-07-15 08:30:53
阅读次数:
318
/** * 获取标准URL的参数 * @_key:字符串,不支持数组参数(多个相同的key) * @_url:字符串,(window).location.href,使用时别误传入非window对象 * @_spliter:字符串,参数间分隔符 * 注意: * 1、如不存在指定键,返回空字符串,方便....
分类:
编程语言 时间:
2014-07-14 21:30:40
阅读次数:
256
模块如何在运行中生效配置文件中的location块决定了匹配某种URL的请求将会由相应的HTTP模块处理,因此,运行时HTTP框架会在接收完毕HTTP请求的头部后,将请求的URL与配置文件中的所有location进行匹配,匹配后再根据location{}内的配置项选择http模块来调用。在mytes...
分类:
其他好文 时间:
2014-07-14 09:33:24
阅读次数:
286
使用情境:我想输入www.abc.com/a/1后,跳转到www.abc.com/index.php/a/1
配置Nginx.conf在你的虚拟主机下添加:
location / {
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php/$1 last;
}
}
如果你的项目...
分类:
Web程序 时间:
2014-07-13 18:52:33
阅读次数:
258
默认网站根目录为/usr/local/nginx/html,要将它改成/homw/www
vi /usr/local/nginx/conf/nginx.conf
将其中的
location / {
root html;
index index.php index.html index.htm;...
分类:
Web程序 时间:
2014-07-13 17:06:03
阅读次数:
219
配置nginx支持php 出现了No input file specified ?
只要修改下安装目录下的 nginx.conf下的
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index ...
分类:
Web程序 时间:
2014-07-13 16:16:48
阅读次数:
270
/*
A - 广搜 基础
Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
Submit
Status
Description
Farmer John has been informed of the location of a fugitive cow and wants to catch...
分类:
其他好文 时间:
2014-07-13 16:14:50
阅读次数:
236
BUYING FEED
时间限制:3000 ms | 内存限制:65535 KB
难度:4
描述
Farmer John needs to travel to town to pick up K (1 D*K cents.
The county feed lot has N (1 location X_i (0 <
X_i John as much as F_i (1
A...
分类:
其他好文 时间:
2014-07-12 20:27:31
阅读次数:
263
String
ACCESS_CHECKIN_PROPERTIES
允许在登入数据库的时候读写其中的属性表,并上传改变的值
String
ACCESS_COARSE_LOCATION
允许应用访问范围(如WIFI)性的定位
String
ACCESS_FINE_LOCATION
允许应用访问精确(如...
分类:
移动开发 时间:
2014-07-12 17:31:10
阅读次数:
853
android提供了LocationManager来取得位置,用LocationListener来监听位置的变化
先做一些初始化工作:
/** latitude and longitude of current location*/
public static String mLat = "";
public static String mLon = "";
/** time out...
分类:
移动开发 时间:
2014-07-12 17:11:25
阅读次数:
248