KillThunder
V2EX  ›  问与答

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

  •  
  •   KillThunder · Mar 22, 2017 · 1641 views
    This topic created in 3388 days ago, the information mentioned may be changed or developed.

    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}',这到底是什么原因?我哪里写的不正确吗?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5572 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 06:44 · PVG 14:44 · LAX 23:44 · JFK 02:44
    ♥ Do have faith in what you're doing.