ExtJS查看加载

时间:2011-04-21 11:59:53

标签: extjs

我在ExtJs窗口中使用它来加载视图:

autoLoad: { url: '@Url.Content("~/Admin/AddEditAssetTypes/")', 
    scripts: true, 
    nocache: true }

但它没有加载视图。

1 个答案:

答案 0 :(得分:1)

您尝试使用路径而不是网址加载数据。

网址是一个网址(可以是相对的),其中路径是服务器上的物理文件路径。

您的代码段应该类似于

autoLoad: { 
    url: '/Admin/AddEditAssetTypes/filename.html', 
    scripts: true, 
    nocache: true
}

基本上,您应该可以在浏览器中导航到url配置选项。如果你无法查看它,那么Ext将无法在Panel中显示它。

相关问题