Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 自动数字-删除接收到的值_Javascript_Jquery_Ajax_Autonumeric.js - Fatal编程技术网

Javascript 自动数字-删除接收到的值

Javascript 自动数字-删除接收到的值,javascript,jquery,ajax,autonumeric.js,Javascript,Jquery,Ajax,Autonumeric.js,我使用自动数字。当您悬停input元素时,添加到输入中的数据将被清除。为什么是价值观​​变明朗?如何修复它 $('#thermForwardStream').focusout(函数(){ var thermForwardStream=$('#thermForwardStream').val(); var thermBackStream=$('#thermBackStream').val(); 如果(逆流==“70”){ $.ajax({ 键入:“POST”, 数据类型:“json”, 数据:{

我使用自动数字。当您悬停
input
元素时,添加到
输入中的数据将被清除。为什么是价值观​​变明朗?如何修复它

$('#thermForwardStream').focusout(函数(){
var thermForwardStream=$('#thermForwardStream').val();
var thermBackStream=$('#thermBackStream').val();
如果(逆流==“70”){
$.ajax({
键入:“POST”,
数据类型:“json”,
数据:{'thermForwardStream':thermForwardStream,'thermBackStream':thermBackStream},
url:'@url.Action(“GetDataAnnexY”,“ThermLoss”),
成功:功能(数据){
$('#tempHeatExchangeOne').val(data.thermForwardStream);
$('#tempHeatExchangerTwo').val(data.thermBackStream);
}
});
}
});
常量自动编码选项={
AllowDecimal添加:“浮动”,
小数字符:“,”,
digitGroupSeparator:“”,
emptyInputBehavior:“零”
};
新的自动数字(“#thermForwardStream”,自动数字选项);
新的自动数字(“#thermBackStream”,自动数字选项);
新的自动数字(“#TempheatExchangeOne”,自动数字选项);
新的自动数字(“#tempHeatExchangerTwo”,自动数字选项)

需要添加属性
watchExternalChanges

定义自动数字元素是否应监视所做的外部更改 不使用.set()


问题在哪里?很有效谢谢
 const autoNumericOptions = {
        allowDecimalPadding: "floats",
        decimalCharacter: ",",
        digitGroupSeparator: "",
        emptyInputBehavior: "zero",
        watchExternalChanges: true //!!!
    };