1、JavaScript runtime error: '$' is undefined
:未引用jQuery.js文件
2、The following errors occurred while attempting to load the app.
- No assembly found containing an OwinStartupAttribute.
- No assembly found containing a Startup or [AssemblyName].Startup class.
To disable OWIN startup discovery, add the appSetting owin:AutomaticAppStartup with a value of "false" in your web.config.
:<add key="owin:AppStartup" value="[NameSpace].Startup" />
3、Cannot redirect after HTTP headers have been sent:
if (!Response.IsRequestBeingRedirected)
{
Response.Redirect(loginURL + "?back_url=" + encodeURL);
}
4、 设置不可编缉属性(disabled:无法获取数据、readonly:可获取数据)
$('#id').attr("disabled", "disabled");
$('#id').attr("readonly", "readonly");
删除属性
$('#id').removeAttr("disabled");
$('#id').removeAttr("readonly");
JS的问题积累
最新推荐文章于 2024-04-02 16:24:26 发布