经验规律,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. 第一册:lesson 11.

    原文:Is this your shirt? A:Whose shirt is that? Is this your shirt B? B:NO,sir. It's not my shirt.This ...

  2. CentOS 7.4 64位安装配置MySQL8.0

    第一步:获取mysql YUM源 进入mysql官网获取RPM包下载地址 https://dev.mysql.com/downloads/repo/yum/   image.png 点击下载   im ...

  3. No application encryption key has been specified.

    环境:php7.1.10laravel5.5出现: 解决:在根目录下执行: php artisan key:generate OK问题解决

  4. nginx 日子配置

    nginx access_log nginx 日志说明 不同用户防卫Nginx会把每个用户访问往咱的日志信息记录到指定的日志文件里,供网站管理员分析用户浏览行为等,此功能又ngx_http_log_m ...

  5. javascript event 事件解析

    event对象只在事件发生的过程中才有效. event的某些属性只对特定的事件有意义.比如,fromElement 和 toElement 属性只对 onmouseover 和 onmouseout ...

  6. JS动态创建元素

    动态添加标签,可从服务器获取标签文本,然后加载到指定div中,可用于权限控制. 1.添加标签字符串方式 var str='<div>5555555555555555555555555555 ...

  7. Git命令使用小结

    一.上传你的代码的基本方式 0.在github网站上登录你的账户cynthiawupore,然后新建一个仓库demo 1.初始化 $ git init 2.添加文件夹下所有文件到仓库 $ git ad ...

  8. OSI 七层,TCP 四层 , TCP 五层模型介绍

    以 TCP 四层模型为例,介绍对应的物理设备 传输层: 四层交换机,四层路由器 网络层: 路由器,三层交换机 数据链路层: 网桥,以太网交换机,网卡 物理层: 中继器,集线器,双绞线 各层功能介绍 物 ...

  9. 小tips:JS之break,continue和return这三个语句的用法

    break语句 break语句会使运行的程序立刻退出包含在最内层的循环或者退出一个switch语句.由于它是用来退出循环或者switch语句,所以只有当它出现在这些语句时,这种形式的break语句才是 ...

  10. 洛谷P2866 [USACO06NOV]糟糕的一天Bad Hair Day(单调栈)

    题目描述 Some of Farmer John's N cows (1 ≤ N ≤ 80,000) are having a bad hair day! Since each cow is self ...