Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Extjs在单个单词上显示链接_Javascript_Extjs_Extjs4 - Fatal编程技术网

Javascript Extjs在单个单词上显示链接

Javascript Extjs在单个单词上显示链接,javascript,extjs,extjs4,Javascript,Extjs,Extjs4,我如何在一个单词中显示链接,如: Click **here** (link only when clicking on the word here) 我用Extjs创建了一个链接组件,就像这样,我使用的是ExtJS4.1,但问题是链接在整个短语上 { xtype : 'component', autoEl: { tag: 'a', target: '_blank', href: '

我如何在一个单词中显示链接,如:

 Click **here** (link only when clicking on the word here)
我用Extjs创建了一个链接组件,就像这样,我使用的是ExtJS4.1,但问题是链接在整个短语上

    {
        xtype : 'component',
        autoEl: {
            tag: 'a',
            target: '_blank',
            href: 'help/GUI_help.html',
            html: 'Help on GUI.'
        }
    }

任何帮助都将不胜感激。

这可能是最简单的解决方案:

{
    xtype: 'component',
    html: 'Help on <a href="help/GUI_help.html" target="_blank">GUI</a>'
}

你以前可能想过这个,但我要说的是:

},{
    xtype: 'component',
    autoEl: {
        html: 'Click '
    }
}, {
    xtype: 'component',
    autoEl: {
        tag: 'a',
        target: '_blank',
        href: 'help/GUI_help.html',
        html: 'Here.'
    }
}

谢谢,在发布我的问题后,我意识到这样做更容易,所以我就是这样设法解决的: