HTML文本框在AngularJS指令模板中不起作用

时间:2015-06-09 16:26:07

标签: javascript html angularjs

我为AngularJS应用程序制作了一个小指令,这是指令模板:

    <div style="width:100px; height:30px; background-color:white;">
<div style="background-color:khaki; width:100%; height:30px; text-align:center;"  >
<span ng-if="show_label" ng-dblclick="ChangeTitle($event)">{{ GetTitle() }}</span>
<textarea style="z-index:1000000"></textarea>
</div>
</div>
<div style="width:100px; height:120px; background-color:skyblue;" >
            <div style="height:24px; width:24px; background-color:orange; position:relative; top:50px; left:50px;
z-index:2000; cursor:hand; cursor:pointer;" ng-click="SwitchRoot()" onclick="SwitchRoot2()"></div>

    </div>

我遇到一个小问题:我的文字区域(或文本框)没有收到任何输入,这意味着我无法在文本框中输入任何内容!

有什么问题?这里出了什么问题?

0 个答案:

没有答案