我正在尝试让代码在jsfiddle上工作,它会读取并更改url中的url变量:
http://jsfiddle.net/edwardtanguay/3k4j4mz5/3
public static GOAuth2RequestFactory RefreshAuthenticate(){
OAuth2Parameters parameters = new OAuth2Parameters(){
RefreshToken = "<YourRefreshToken>",
AccessToken = "<AnyOfYourPreviousAccessTokens>",
ClientId = "<YourClientID>",
ClientSecret = "<YourClientSecret>",
Scope = "https://apps-apis.google.com/a/feeds/compliance/audit/",
AccessType = "offline",
TokenType = "refresh"
};
OAuthUtil.RefreshAccessToken(parameters);
return new GOAuth2RequestFactory(null, "<YourApplicationName>", parameters);
}
为什么以上代码不会添加,例如网址末尾的In [95]:
df['symbol'] = df['symbol'].str.replace(' ','.')
df
Out[95]:
symbol
0 AEC
1 BRK.A
2 BRK.B
3 CTRX
4 FCE.A
?代码不正确或者这是jsfiddle的限制吗?
答案 0 :(得分:2)
您的示例应该有效,但在jsfiddle中这是不可能的。所以,是的,这是jsfiddle的限制。
答案 1 :(得分:1)
$ location service为url,path,search,hash
提供setter方法
所以您可以像这样更改查询字符串:
var id = Math.floor(Math.random() * 60) + 20;
$location.search({customer: id})