小编Alp*_*Dog的帖子

setPristine用于单个输入字段

我正在尝试将setPristine方法用于表单中的单个输入字段.有一些方法可以为整个表单执行此操作,但我想只对我的表单中的一个输入字段执行此操作.如何执行此操作?

我试过这种方式

$scope.merchantDetails.customer_id.$setPristine = true;
Run Code Online (Sandbox Code Playgroud)

但没有奏效.

这是我想在某个函数上将其设置为pristine状态的输入字段.

<input class="form-control" id="id_customer_id" name="customer_id" placeholder="Auto-generated if empty" title="" type="text" maxlength="8" ng-keydown="check();" ng-model="customer.customerId">
Run Code Online (Sandbox Code Playgroud)

angularjs

7
推荐指数
1
解决办法
3469
查看次数

无法重新启动 ntpd.service

我正在尝试修复尝试将项目部署到亚马逊服务器时遇到的错误 RequestTimeTooSkewed 我发现这篇文章。

http://www.emind.co/how-to/how-to-fix-amazon-s3-requesttimetooskewed/

我正在按照步骤操作,但坚持重新启动 ntp 服务。

我使用了service.ntpd restart命令,但我收到一条错误消息

Failed to restart ntpd.service: Unit ntpd.service not found.
Run Code Online (Sandbox Code Playgroud)

我怎样才能解决这个问题?

ubuntu amazon-s3 ntp

3
推荐指数
2
解决办法
2万
查看次数

标签 统计

amazon-s3 ×1

angularjs ×1

ntp ×1

ubuntu ×1