zoukankan      html  css  js  c++  java
  • angularjs 延迟更新和angularjsUI

    angularjsUI库
    https://material.angularjs.org/latest/

    ng-model-options="{ updateOn: 'blur' }"

    options to apply to the current model. Valid keys are:

    • updateOn: string specifying which event should the input be bound to. You can set several events using an space delimited list. There is a special event called default that matches the default events belonging of the control.
    • debounce: integer value which contains the debounce model update value in milliseconds. A value of 0 triggers an immediate update. If an object is supplied instead, you can specify a custom value for each event. For example:ng-model-options="{ updateOn: 'default blur', debounce: { 'default': 500, 'blur': 0 } }"
    • allowInvalid: boolean value which indicates that the model can be set with values that did not validate correctly instead of the default behavior of setting the model to undefined.
    • getterSetter: boolean value which determines whether or not to treat functions bound to ngModel as getters/setters.
    • timezone: Defines the timezone to be used to read/write the Date instance in the model for<input type="date"><input type="time">, ... . It understands UTC/GMT and the continental US time zone abbreviations, but for general use, use a time zone offset, for example, '+0430' (4 hours, 30 minutes east of the Greenwich meridian) If not specified, the timezone of the browser will be used.
     
    <div ng-controller="ExampleController">
      <form name="userForm">
        <label>Name:
          <input type="text" name="userName"
                 ng-model="user.name"
                 ng-model-options="{ updateOn: 'blur' }"
                 ng-keyup="cancel($event)" />
        </label><br />
        <label>Other data:
          <input type="text" ng-model="user.data" />
        </label><br />
      </form>
      <pre>user.name = <span ng-bind="user.name"></span></pre>
    </div>

     

  • 相关阅读:
    路由交换03-----传输层协议
    Linux结构目录
    Linux RedHat 7 配置本地 YUM源
    HUAWEI,H3C 三层交换机 常用命令
    windows操作系统更改 <远程桌面> 端口号
    SpringBoot 2.x (2):请求和传参
    SpringBoot 2.x (1):手动创建项目与自动创建项目
    Eclipse中使用Maven搭建SSM框架
    基于Spring和Mybatis拦截器实现数据库操作读写分离
    WinServer配置MySQL主从同步
  • 原文地址:https://www.cnblogs.com/danghuijian/p/4819664.html
Copyright © 2011-2022 走看看