V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
KillThunder
V2EX  ›  问与答

Ext.js items 中图片路径的问题

  •  
  •   KillThunder · 2017-03-22 09:42:38 +08:00 · 1056 次点击
    这是一个创建于 2589 天前的主题,其中的信息可能已经有所发展或是发生改变。

    items: [{ xtype : 'hidden', name : 'isTemplate', id : 'isTemplateId', bind : { value : '{editRecordInstance.id}' } },{ xtype: 'box', width: 150, height: 100, autoEl: { tag: 'img', src: '{editRecordInstance.attachments}', onclick:"Ext.GlobalEvents.fireEvent('imageOnclick', this);" } }]

    在上面的 items 中,第一个'{editRecordInstance.id}'在页面能获取正确的值,但第二个在页面还是显示'{editRecordInstance.attachments}',这到底是什么原因?我哪里写的不正确吗?

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1259 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:03 · PVG 02:03 · LAX 11:03 · JFK 14:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.