原api出处:https://docs.angularjs.org/api/ngRoute/service/$routeParams$routeParams 可以获取当前路径参数.需要ngroute模块被安装。路径参数是$location.search()和$location.path()的组合. ...
背景5.1 号开始 App 审核开始强制支持 iPhone5,并禁止使用 UDID。问题上传 app 后一直处于 Invalid Binary 状态,并且收到一封邮件说 Non-public API usage解决思路查了下苹果开发者论坛,主要从这几个方面入手:第三方的 libraries/fram...
分类:
移动开发 时间:
2014-07-22 22:55:36
阅读次数:
193
#import "ViewController.h"#import @interface ViewController () //这里为什么要把它设置成为属性?为了就是解决强引用的问题,如果不设置,locationManger会在花括号之后,就会释放掉,这样就看不到了我们想要的地址改变信息,arc情...
分类:
其他好文 时间:
2014-07-16 16:59:24
阅读次数:
240
想必大家都有过在地址栏传参的经历,这就会出现传中文乱码的问题,让大家头痛不已,下面就是解决这一问题的好方法。 function getArgs(strParame) { var args = new Object(); var query = location.search.s...
分类:
其他好文 时间:
2014-07-16 16:58:15
阅读次数:
161
当你的lnmp架构安装完成后,发现html页面可以打开,但php页面却无法打开,页面提示404 not found,如果确定配置过程不会有问题,可以从下面两个方法来查看1.nginx的server里面有添加对php的支持没有,如location / { root html; ...
分类:
Web程序 时间:
2014-07-16 16:54:44
阅读次数:
506
function get_hs_page(cur_page, total_page) { var result = ""; for(var i = 1; i 1) { i = cur_page - 6; }else if(i == cur_page ...
分类:
Web程序 时间:
2014-07-16 16:44:56
阅读次数:
543
$('#submitgo').click(function(){ if($('#fillNum').val()!=''){ var u = location.href.toString(); if(u.indexOf('page') >=0){ var url=replaceParamVal('pa...
分类:
其他好文 时间:
2014-07-16 16:09:36
阅读次数:
162
*.location.href 用法:
top.location.href=”url” 在顶层页面打开url(跳出框架)
self.location.href=”url” 仅在本页面打开url地址
parent.location.href=”url” 在父窗口打开Url地址
this.location.href=”url” ...
分类:
其他好文 时间:
2014-07-16 14:30:03
阅读次数:
171
Catch That Cow
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 45087
Accepted: 14116
Description
Farmer John has been informed of the location of a fugitiv...
分类:
其他好文 时间:
2014-07-16 13:22:55
阅读次数:
233
No matter left shift or right shift, the result's sign should always be the same as its left operand.
By default, const numbers in C/C++ is signed.
-Wsign-compare
{
unsigned int j = 3;
...
分类:
其他好文 时间:
2014-07-16 12:59:21
阅读次数:
238