小编dge*_*e03的帖子

使用MixedCollection数据存储

是否可以在ExtJS 4.1.x中执行此过程?

var myMixedCollection = myStore.queryBy(...);
var anotherStore = Ext.create('Ext.data.Store', { data: myMixedCollection, ... });
var myGrid = Ext.create('Ext.grid.Panel', { store: anotherStore, ... });
Run Code Online (Sandbox Code Playgroud)

因为我的网格没有显示任何内容或仅显示一个空行
当我记录我的myMixedCollection所有数据都没有问题,但是当我anotherStore用Firebug 打开我时,我可以看到我的数据存储中只有一个空行.

grid extjs store extjs4 extjs4.1

5
推荐指数
1
解决办法
2300
查看次数

XSL 应用模板优先级

我有问题,我需要你。

我有一个想法用以下代码来解决它:

<xsl:template match="root">
    <xsl:apply-templates/>
</xsl:template>

<xsl:template match="*[@foo]" priority="3">
    <p>This text must be systematically added for any rendered element having a foo attribute</p>
    <xsl:apply-templates select="."/>
</xsl:template>

<xsl:template match="bar1">
    <p>This is the normal rendering for the bar1 element</p>
</xsl:template>
<xsl:template match="bar1[@class='1']">
    <p>This is the normal rendering for the bar1 element with class 1</p>
</xsl:template>
<xsl:template match="bar1[@class='2']">
    <p>This is the normal rendering for the bar1 element with class 2</p>
</xsl:template>
...
<xsl:template match="barN">
    <p>This is the normal rendering for the barN element</p> …
Run Code Online (Sandbox Code Playgroud)

xml xslt

1
推荐指数
1
解决办法
3049
查看次数

标签 统计

extjs ×1

extjs4 ×1

extjs4.1 ×1

grid ×1

store ×1

xml ×1

xslt ×1