我认为在安装我的SSD磁盘后Visual Studio 2012会很快但是我仍然觉得我在建造时正在使用一台计算机.
我的电脑相对较快(4芯,8 gb ram和ssd).
如果我正在查看任务管理器,那么cpu,内存或磁盘似乎都没有工作.
还有什么可以让VS更快.VS的瓶颈通常是什么?如果我要为VS构建一台新计算机,我应该优先考虑什么?
我试图进行(临时)登录,将用户存储在我的 web.config 文件中。将拒绝添加到 web.config 文件后,它给了我这个错误
HTTP 错误 404.15 - 未找到 请求过滤模块配置为拒绝查询字符串太长的请求。
网址看起来像这样
http://localhost/Account/Login?ReturnUrl=%2FAccount%2FLogin%3FReturnUrl%3D%252FAccount%252FLogin%253FReturnUrl%253D%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAccount%252525252FLogin%252525253FReturnUrl%252525253D%25252525252FAccount%25252525252FLogin%25252525253FReturnUrl%25252525253D%2525252525252FAccount%2525252525252FLogin%2525252525253FReturnUrl%2525252525253D%252525252525252FAccount%252525252525252FLogin%252525252525253FReturnUrl%252525252525253D%25252525252525252FAccount%25252525252525252FLogin%25252525252525253FReturnUrl%25252525252525253D%2525252525252525252FAccount%2525252525252525252FLogin%2525252525252525253FReturnUrl%2525252525252525253D%252525252525252525252FAccount%252525252525252525252FLogin%252525252525252525253FReturnUrl%252525252525252525253D%25252525252525252525252FAccount%25252525252525252525252FLogin%25252525252525252525253FReturnUrl%25252525252525252525253D%2525252525252525252525252FAccount%2525252525252525252525252FLogin%2525252525252525252525253FReturnUrl%2525252525252525252525253D%252525252525252525252525252FAccount%252525252525252525252525252FLogin%252525252525252525252525253FReturnUrl%252525252525252525252525253D%25252525252525252525252525252FAccount%25252525252525252525252525252FLogin%25252525252525252525252525253FReturnUrl%25252525252525252525252525253D%2525252525252525252525252525252FAccount%2525252525252525252525252525252FLogin%2525252525252525252525252525253FReturnUrl%2525252525252525252525252525253D%252525252525252525252525252525252FAccount%252525252525252525252525252525252FLogin%252525252525252525252525252525253FReturnUrl%252525252525252525252525252525253D%25252525252525252525252525252525252FAccount%25252525252525252525252525252525252FLogin%25252525252525252525252525252525253FReturnUrl%25252525252525252525252525252525253D%2525252525252525252525252525252525252FAccount%2525252525252525252525252525252525252FLogin%2525252525252525252525252525252525253FReturnUrl%2525252525252525252525252525252525253D%252525252525252525252525252525252525252FAccount%252525252525252525252525252525252525252FLogin%252525252525252525252525252525252525253FReturnUrl%252525252525252525252525252525252525253D%25252525252525252525252525252525252525252F
Run Code Online (Sandbox Code Playgroud)
(无可否认它设置了cookie,但我仍然可以访问所有页面)
这就是我的 web.config 中的样子
<authentication mode="Forms">
<forms loginUrl="~/Account/Login" name=".ASPXAUTH" slidingExpiration="true" timeout="1440" path="/" defaultUrl="~/">
<credentials passwordFormat="Clear">
<user name="matchUser80" password="123Match789"/>
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
Run Code Online (Sandbox Code Playgroud)
还有我的控制器
[HttpPost]
public ActionResult Login(LoginModel model, string returnUrl)
{
if (!ModelState.IsValid)
{
return View(model);
}
if (FormsAuthentication.Authenticate(model.UserName, model.Password))
{
FormsAuthentication.SetAuthCookie(model.UserName, false);
FormsAuthentication.RedirectFromLoginPage(model.UserName, false);
if (returnUrl != null)
{
return Redirect(returnUrl);
}
return View();
}
ModelState.AddModelError(string.Empty, "Wrong username or password");
return View(model); …Run Code Online (Sandbox Code Playgroud) 是否可以使用sass(.scss)检查文件是否存在我想导入一个文件,如果它存在,如果不导入另一个文件。那可能吗?
我没有使用指南针(建议重复问题)
我能够获得id,src,style或者其他任何东西:
$(document).click(function (e) {
console.log('id :' + e.target.id);
});
Run Code Online (Sandbox Code Playgroud)
但我想上课,为什么不可能?
我正在尝试用jquery旋转一个元素,然后我想在完成时做一些其他事情.旋转工作但为什么不警报?
看到jsfiddle:JSFiddle
HTML:
<div class="square">click me</div>
Run Code Online (Sandbox Code Playgroud)
CSS:
.square{
background:red;
height:100px;
width:100px;
cursor:pointer;
Run Code Online (Sandbox Code Playgroud)
}
JS:
$('.square').click(function () {
rotate($(this), -180, 1000);
});
function rotate(element, degrees, speed) {
element.animate({ borderSpacing: degrees }, {
step: function (now, fx) {
$(this).css('-webkit-transform', 'rotate(' + now + 'deg)');
$(this).css('-moz-transform', 'rotate(' + now + 'deg)');
$(this).css('transform', 'rotate(' + now + 'deg)');
},
duration: speed
}, function () {
alert("I'm done");
});
}
Run Code Online (Sandbox Code Playgroud)