我们有一个用 Sencha cmd 5.0.1.231 构建的 ExtJS 5.01 应用程序。
我们面临的问题是浏览器似乎缓存了我们应用程序的旧版本。在为我们的应用程序提供服务时查看 chrome 上的网络流量,我可以看到 app.js、app.css 文件都附加了 ?_dc={timestamp} 。现在,这告诉我每次发布我的应用程序的新版本(更新此时间戳)时,浏览器都应该获得一个新版本。但似乎有时仍然提供旧版本。
还有什么我需要做的胸围缓存吗?
谢谢
我见过一些帖子,其中jQuery受到了人们对ExtJS的青睐.我没有详细介绍过jQuery,但从我到目前为止所读到的内容来看,jQuery并没有提供ExtJS附带的UI.我对么?为什么有些人更喜欢ASP.NET中的jQuery?
谢谢
如何修复Chrome 43中的子菜单消失?
使用Extjs 4.
这适用于以前版本的Chrome.
我对允许绑定哪些配置值和哪些不被绑定感到困惑。当前,不允许绑定allowBlank,因为我收到一条错误消息Ext.mixin.Bindable.applyBind(): Cannot bind allowBlank on Ext.form.field.ComboBox - missing a setAllowBlank method.,提示我如果使用配置,则不会收到该错误,但它不能按预期工作:
xtype: 'combobox',
anchor: '100%',
fieldLabel: 'Affiliation',
name: 'AffiliationId',
displayField: 'Abbreviation',
valueField: 'AffiliationId',
queryMode: 'local',
typeAhead: true,
config: {
forceSelection: true,
allowBlank: false
},
bind: {
store: '{affiliationStore}',
allowBlank: '{allowBlankAffiliation}',
forceSelection: '{forceSelectionAffiliation}'
}
Run Code Online (Sandbox Code Playgroud)
我想知道的是,如何绑定allowBlank公式或其他任何属性?这是否可能,或者我完全不了解某些内容?如果是这样,我怎么知道我可以绑定什么和我不能绑定什么?
从全局控制器,我可以很容易地获得对另一个全局控制器的引用
this.getController('TargetController');
Run Code Online (Sandbox Code Playgroud)
但是,在视图控制器的上下文中,如何获取对同一控制器的引用?即:
Ext.define('myCoolApp.view.SomeNeatController', {
extend: 'Ext.app.ViewController',
alias: 'controller.someneat',
// this is bound to a button click event, let's say.
onClick: function(button) {
// How to get a reference to a global controller here?
// this.getController('TargetController'); is not defined
// on the view controller....
}
});
Run Code Online (Sandbox Code Playgroud)
可能是一些我很想念的简单,但任何帮助都会受到赞赏.
尽管我ext-all.js在我的索引页面中包含了文件; 当我尝试Sencha提供的在线Guage图表示例时,得到如下所示的错误
http://myapp.com/widget/polar.js?_dc=1436970370848 404 (Not Found)
Uncaught Error: [Ext.create] Unrecognized class name / alias: widget.polar
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用新的ExtJs 5.我根据ExtJs5定义的MVC模式创建了一个小应用程序.
我正在使用ViewControllers每一个View.
问题陈述:现在假设我有两个VC(Controller1和Controller2).每个人都有自己的方法.我希望从Controller1调用Controller2的方法.我想从Controller1更新与Controller2关联的视图.
E.g. Suppose there is a separate view for Status Bar and a ViewController(StatusBarController).
This VC has a method to update the view based on whatever message it receives as input parameter.
All the other controllers in the application will call this VCs method to update the status of the application on the status bar.
Run Code Online (Sandbox Code Playgroud)
在以前的版本中,this.getController('StatusBarController')用于获取任何控制器的句柄,然后调用其方法.
但是当我使用ViewController时,这在我的情况下不起作用.
任何人都可以指导我如何实现这个目标吗?而且这是否是正确/理想的方式来做这样的事情还是有更好的选择?
这是我的代码:
StatusBarView:
Ext.define('MyApp.view.statusbar.StatusBarView', {
extend : 'Ext.panel.Panel',
controller: 'StatusBarController',
region : 'south',
xtype …Run Code Online (Sandbox Code Playgroud) 在ExtJS 4.2.2中.我有一个像这样的hbox容器:
Ext.create('Ext.Panel', {
width: 500,
height: 300,
title: "HBoxLayout Panel",
layout: {
type: 'hbox',
align: 'stretch'
},
renderTo: document.body,
items: [{
xtype: 'panel',
title: 'Inner Panel One',
flex: 2
},{
xtype: 'panel',
title: 'Inner Panel Two',
flex: 1
},{
xtype: 'panel',
title: 'Inner Panel Three',
flex: 1
}]
});
Run Code Online (Sandbox Code Playgroud)
这只是文档中的示例.但我希望三个不同面板之间的垂直线可以拖动,因此用户可以调整每个面板的大小.
谢谢您的帮助!
我正在尝试解决以下问题,但找不到合适的解决方案:
下载开始时禁用按钮(带有底层下载链接)(按钮已单击一次)并在下载完成后再次启用按钮?
我试图用谷歌搜索它,但甚至找不到有用的提示。这在一般情况下甚至可能吗?
我有一个 ExtJS 4 Web 应用程序,其中有一个 Ext.form.ComboBox,我需要在其中禁用某些项目的选择。
是的,我知道我可以在组合框的商店中过滤这些项目 - 但在这种情况下,我实际上确实希望用户看到这些不可选择的项目 - 我只是不希望他们能够选择它们。
有什么建议?
提前致谢
extjs ×10
javascript ×9
extjs5 ×4
extjs4 ×2
mvvm ×2
asp.net ×1
caching ×1
combobox ×1
containers ×1
data-binding ×1
extjs4.1 ×1
extjs4.2 ×1
extjs6 ×1
hbox ×1
jquery ×1
sencha-cmd5 ×1
spring-mvc ×1