【问题标题】:How to Change Value of input field如何更改输入字段的值
【发布时间】:2019-07-10 22:30:53
【问题描述】:

我想更改此输入字段的值。有人可以帮忙吗??

<input _ngcontent-c1="" class="margininput ng-untouched ng-pristine ng-invalid" id="empcode" name="EmpCode" ngmodel="" placeholder="EmpCode" required="" type="text" ng-reflect-required="" ng-reflect-name="EmpCode" ng-reflect-model="">

【问题讨论】:

  • 您是否从开发者工具中复制了上述 html 元素?
  • 你想改变什么?
  • 将您的问题编辑为特定目标,以便其他人无法将您的问题标记为否定。

标签: html angular


【解决方案1】:

将输入类型更改为您想要更改的任何内容。 示例:

<input type="number" placeolder="" name="">
 <input type="text" placeolder="" name="">  
 <input type="password" placeolder="" name=""> 

【讨论】:

  • 我得到了你想做的其他人没有做的事情,所以你的问题看起来像是一个真实的问题。祝你好运兄弟。
猜你喜欢
  • 2021-10-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-12-15
  • 1970-01-01
  • 1970-01-01
  • 2016-08-10
相关资源
最近更新 更多