EightHundred
EightHundred
代码中把这里写死了 ``` public TencentAuthenticationOptions() : base(Constants.DefaultAuthenticationType) { Caption = Constants.DefaultAuthenticationType; CallbackPath = new PathString("/signin-tencent"); ``` 第三方登入组件拦截401相应的response,并请求QQ,这个部分核心代码在`ApplyResponseChallengeAsync` 网站Demo使用的是默认的MVC5项目模板,里面给第三方组件传递了回调路径'Account/ExternalLoginCallback'(保存在AuthenticationProperties)但是在`ApplyResponseChallengeAsync`中只写了这一小段有关代码 ``` AuthenticationProperties properties = challenge.Properties; if (string.IsNullOrEmpty(properties.RedirectUri)) { properties.RedirectUri = currentUri; } ```...
onProgress : function(fileblob, originalfile, loaded, total) { var oldSize = parseFloat(oldProgressNum.text()) || 0; } 当进度条显示的是456kb时候,parseFloat(oldProgressNum.text()) 将获得456.然而事实是想要获得的是mb 也就是本应该显示为456kb,被显示成456MB