经验规律,301毫秒。


function autoFormatMoney() {
if (!this.value.length) {return}
var num = parseFloat(this.value.replace(/,/g, ''));
if (isNaN(num)) {return}
var name = this.name;
if (name === 'paymentValue') {
this.value = window.format_number(num);
form.paymentRatio.value = ((num / totalAsset)*100).toFixed(3);
!triggerFromReset && $(form.paymentRatio).trigger('focus');
} else if (name === 'paymentRatio') {
this.value = num.toFixed(3);
form.paymentValue.value = window.format_number(( num / 100 )* totalAsset);
} else if(name === 'fees' || name === 'insurance'){
this.value = window.format_number(num);
} else if(name === 'rate' || name === 'taxes'){
this.value = num.toFixed(3);
}
triggerFromReset = false;
} $(form.homePrice).on('change', autoFormatMoney).trigger('change');
$(form.paymentValue).on('change', autoFormatMoney).trigger('change');
$(form.paymentRatio).on('change', autoFormatMoney).trigger('change');
$(form.fees).on('change', autoFormatMoney).trigger('change');
$(form.taxes).on('change', autoFormatMoney).trigger('change');
$(form.rate).on('change', autoFormatMoney).trigger('change');
$(form.insurance).on('change', autoFormatMoney).trigger('change'); $('.calculator-func_reset').on(Data.CLICK,function(e){
triggerFromReset = true;
setTimeout(function() {
$sindeoCal.find('input').trigger('change');
}, Data.isMobile?301:10);
});

// input readonly 之后依旧调起输入法 unselectable="on" onfocus="this.blur()"
$('.slide-figure').on('focus','input',function () {
if (data.isLogin){
$(this).attr('unselectable','on');
$(this).blur();
}
});

类似点透

$('.toggle-show').on(CLICK,function(){
$('.toggle-text').toggle();
$('.toggle-icon').toggleClass('icon-up');
$('.toggle-input').toggle(100);
$('.m-calc input[name="propertyTaxRate"]').one('focus',function () {
$(this).blur();
});
});

input reset 重置时间的更多相关文章

  1. spring实现可重置时间定时器

    此文章是基于 搭建Jquery+SpringMVC+Spring+Hibernate+MySQL平台 一. jar包介绍 1. spring-framework-4.3.4.RELEASE 的 lib ...

  2. form表单reset重置按钮

    如果ajax提交完数据,后想清空表单内容 ,以前都是用这个方法$("#id").val(""); 一个一个清空的,其实可以在form表单中加个隐藏的<in ...

  3. clion2020最新安装破解版教程 内含激活码、破解补丁、无限重置时间插件

    clion是一款开发C.C++等相关程序的利器,到目前为止已经更新到2020.3版本啦!还没有升级的小伙伴们赶紧升级啦,本文教大家如何安装clion2020.3版本并且破解,此方法亲测100%可以永久 ...

  4. js动态生成input指定My97DatePicker时间问题

    js生成的input指定onclick时间: 以下1.2为错误: onclick="WdatePicker()"; onclick=WdatePicker(); 若指定到windo ...

  5. clear & file input & reset & file input

    clear & file input & reset & file input Clear <input type="file"> docume ...

  6. css reset重置样式有那么重要吗?

    在以前写html代码的时候,一般都会在head里添加重置样式reset.css,其内容如下: @charset "utf-8"; html, body, div, span, ap ...

  7. angularjs <input>标签获取时间显示问题

    一般的后台管理中,几乎每个管理后台都有设置新密码的功能,但是获取的时候为了好看,都有统一用一定的标签,比如input标签,ng-model来控制显示数据,但是在获取时间的时候用会显示错乱 代码为: & ...

  8. js-form进行reset重置

    (需要注意:做这个reset和submit时页面不能有这两个id和名称) <form id="form1" name="formName" action= ...

  9. my97datepicker插件日期值改变事件 等同于input的onchang()时间

    官网Demo地址http://www.my97.net/demo/index.htm <input type="text" class="Wdate" v ...

随机推荐

  1. [转]Nginx 静态资源缓存设置

    本文转自:https://www.w3cschool.cn/nginxsysc/nginxsysc-cache.html 在开发调试web的时候,经常会碰到因浏览器缓存(cache)而经常要去清空缓存 ...

  2. JQuery官方学习资料(译):选择器的运作

    Getters 和 Setters     JQuery的方法重载,方法设置和获取值一般使用相同名称的方法,当一个方法用来设置一个值的时候称之为Setter,当一个方法用来获取一个值的时候称之为Get ...

  3. 4. explain简介

    一.是什么 使用 explain 关键字可以模拟优化器执行SQl查询语句,从而知道 mysql 是如何处理你的sql语句的.分析你的查询语句或是表的结构的性能瓶颈. 二.能干嘛 表的读取顺序 数据读取 ...

  4. spring-framework-中文文档二:Bean概述

    Spring IoC容器管理一个或多个bean.这些bean是使用您提供给容器的配置元数据创建的,例如,以XML <bean/>定义的形式 . 在容器本身中,这些bean定义被表示为 Be ...

  5. O(n*logn)级别的算法之一(归并排序及其优化)

    原理: 设两个有序的子序列(相当于输入序列)放在同一序列中相邻的位置上:array[low..m],array[m + 1..high],先将它们合并到一个局部的暂存序列 temp (相当于输出序列) ...

  6. django请求和响应

    本文转载自https://blog.csdn.net/xiaogeldx/article/details/88096341 HttpRequest对象 服务器接收到http协议的请求后,会根据报文创建 ...

  7. Android开发学习之RecyclerView

    1.在app/build.gradle中添加RecyclerView依赖 implementation 'com.android.support:recyclerview-v7:28.0.0' 注意依 ...

  8. git 入门教程之github 教程

    github 教程 github 是一个基于 git 的代码托管平台,是平时工作学习的好帮手,学会如何用好 github 网站能够帮助我们更好分享代码或者与其他开发人员合作. 注册 github 账号 ...

  9. Python __init__.py文件的作用

    我们经常在python的模块目录中会看到 "__init__.py"  这个文件,那么它到底有什么作用呢? 1. 模块包(module package)标识 如果你是使用pytho ...

  10. Django 登录验证-自动重定向到登录页

    Web项目有些场景需要做用户登录验证,以便访问不同页面. 方法一:login_required装饰器 适用于函数视图. from django.contrib.auth.decorators impo ...