//取最同一層元素
$('#flow')[0].innerHTML = "contents";
//取得上一層元素 (window通常可省略,e.g., window.parent.document)
$('#flow', parent.document)[0].innerHTML = "contents";
//取得最上層元素
$('#flow', top.document)[0].innerHTML = "contents";
2014年5月28日 星期三
jQuery 取得 iframe 父層元素
IIS 根目錄網站與虛擬目錄網站 Web.config 影響
取消子網站繼承根目錄網站的設定即可
<location path="." inheritInChildApplications="false">
<system.web>
...
</system.web>
</location>
2014年5月22日 星期四
ASP.NET MVC 壓縮CSS與JavaScript
BundleConfig.cs
修改後
bundles.Add(new ScriptBundle("~/bundles/extjs").Include(
"~/Scripts/extjs/ext-all-debug.js",
"~/Scripts/default.js",
"~/Scripts/jquery-1.7.1.js",
"~/Scripts/extjs/ext-lang-zh_TW.js",
"~/Scripts/TRAUtility.js"));
Web.config
<compilation debug="false" targetframework="4.5">使用方式
@{
Layout = null;
}
<html lang="zh-tw">
<head id="Head1" runat="server">
<title></title>
@Scripts.Render("~/bundles/extjs")
</head>
<body>
</body>
</html>
修改前修改後
2014年5月20日 星期二
2014年5月14日 星期三
設定本地端 IE 版本 X-UA-Compatible
訂閱:
意見 (Atom)







