| | |
| | | } else { |
| | | value = getDoc(key, '.value'); |
| | | if (typeof value == 'undefined') {//上面的取值如果出现两个相同的key但不相同的标签时候就会导致获取失败,用JQ方法在获取一次 xin 2022-6-1 09:35:23 |
| | | value=$("#"+key).val(); |
| | | // value = $("#" + key).val(); |
| | | value = $doc(key).val(); |
| | | } |
| | | } |
| | | break; |
| | |
| | | out.print("\r\n if(getDoc('formid',\"\")!=null && "+setBool+"){"); |
| | | out.print("\r\n if(getDoc('formid',\".value\")==\"\"){"); |
| | | out.print("\r\n setDoc('formid',\".value='"+formId+"'\");"); |
| | | out.print("\r\n } \r\n if($('input[id=formid]')!=null && $('input[id=formid]').val()==\"\"){"); |
| | | out.print("\r\n } \r\n if($('input[id=formid]').val()!=null && $('input[id=formid]').val()==\"\"){"); |
| | | out.print("\r\n $('input[id=formid]').val("+formId+")"); |
| | | out.print("\r\n }"); |
| | | out.print("\r\n }"); |