KillThunder
V2EX  ›  问与答

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

  •  
  •   KillThunder · Mar 22, 2017 · 1571 views
    This topic created in 3353 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   ·   949 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:12 · PVG 05:12 · LAX 14:12 · JFK 17:12
    ♥ Do have faith in what you're doing.