本文介绍了无法获取未定义或空引用的属性“值”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
if(finCnt == 0)
{
var cmpdate = "";
cmpdate = document.getElementById("mskPlBefamt2_" + finCnt).value;
prmDSOInEntry15_2.recordset.Fields("FIEW1506_P_BEFAMT2" ).value = ((trim(document.getElementById("mskPlBefamt2_" + finCnt).value)).length != 10 ? "" :
LIB().Util.LocalToDate(document.getElementById("mskPlBefamt2_" + finCnt).value));
prmDSOInEntry15_2.recordset.Fields("FIEW1506_P_BEFAMT1" ).value = ((trim(document.getElementById("mskPlBefamt1_" + finCnt).value)).length != 10 ? "" :
LIB().Util.LocalToDate(document.getElementById("mskPlBefamt1_" + finCnt).value));
prmDSOInEntry15_2.recordset.Fields("FIEW1506_P_BEFAMT0" ).value = ((trim(document.getElementById("mskPlBefamt0_" + finCnt).value)).length != 10 ? "" :
LIB().Util.LocalToDate(document.getElementById("mskPlBefamt0_" + finCnt).value));
prmDSOInEntry15_2.recordset.Fields("FIEW1506_B_BEFAMT2" ).value = ((trim(document.getElementById("mskBsBefamt2_" + finCnt).value)).length != 10 ? "" :
LIB().Util.LocalToDate(document.getElementById("mskBsBefamt2_" + finCnt).value));
prmDSOInEntry15_2.recordset.Fields("FIEW1506_B_BEFAMT1" ).value = ((trim(document.getElementById("mskBsBefamt1_" + finCnt).value)).length != 10 ? "" :
LIB().Util.LocalToDate(document.getElementById("mskBsBefamt1_" + finCnt).value));
prmDSOInEntry15_2.recordset.Fields("FIEW1506_B_BEFAMT0" ).value = ((trim(document.getElementById("mskBsBefamt0_" + finCnt).value)).length != 10 ? "" :
LIB().Util.LocalToDate(document.getElementById("mskBsBefamt0_" + finCnt).value));
}
else
{
// alert(document.getElementById("mskPlBefamt2_" + finCnt).value);
prmDSOInEntry15_2.recordset.Fields("FIEW1506_P_BEFAMT2" ).value = document.getElementById("mskPlBefamt2_" + finCnt).value;
prmDSOInEntry15_2.recordset.Fields("FIEW1506_P_BEFAMT1" ).value = document.getElementById("mskPlBefamt1_" + finCnt).value;
prmDSOInEntry15_2.recordset.Fields("FIEW1506_P_BEFAMT0" ).value = document.getElementById("mskPlBefamt0_" + finCnt).value;
prmDSOInEntry15_2.recordset.Fields("FIEW1506_B_BEFAMT2" ).value = document.getElementById("mskBsBefamt2_" + finCnt).value;
prmDSOInEntry15_2.recordset.Fields("FIEW1506_B_BEFAMT1" ).value = document.getElementById("mskBsBefamt1_" + finCnt).value;
prmDSOInEntry15_2.recordset.Fields("FIEW1506_B_BEFAMT0" ).value = document.getElementById("mskBsBefamt0_" + finCnt).value;
}
我的尝试:
你好伙计们,你能帮我吗?当我想要在Html中执行时遇到麻烦无法获取未定义或空引用的属性'值'在else之后{。
What I have tried:
hello guys, can you help me for this? when i want execute in Html have trouble " Unable to get property 'value' of undefined or null reference" after else { .
推荐答案
这篇关于无法获取未定义或空引用的属性“值”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!