id : 'signdoctor-iconPath',
name : 'iconPath',
xtype : 'textfield',
fieldLabel : '照片:',
inputType : 'image',
anchor : '30%'
Ext.getCmp('signdoctor-iconPath').setValue("<img src='"+result.iconPath+"'/>");
最终只是在文本框中出现<img src="" />这句话,如何在文本框中显示对应的图片呢?请大家指教
extjs 麻烦大家帮我看看下面的想法怎么实现?
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
2条回答 默认 最新
- Go 旅城通票 2016-03-12 02:57关注
Ext.create('Ext.panel.Panel', { renderTo: document.body, title: 'test' , layout: { type: 'hbox', align: 'middle' } , items: [{ xtype: 'label', text: '照片:', margin: '10 0 0 0' }, { id: 'signdoctor-iconPath', name: 'iconPath', xtype: 'box', autoEl: { tag: 'img', src: 'aa.jpg', width: 100, height: 100 } }] });
解决 无用评论 打赏 举报
悬赏问题
- ¥15 ads仿真结果在圆图上是怎么读数的
- ¥20 Cotex M3的调试和程序执行方式是什么样的?
- ¥20 java项目连接sqlserver时报ssl相关错误
- ¥15 一道python难题3
- ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
- ¥15 牛顿斯科特系数表表示
- ¥15 arduino 步进电机
- ¥20 程序进入HardFault_Handler
- ¥15 oracle集群安装出bug
- ¥15 关于#python#的问题:自动化测试