js获取 model.addAttribute()存入的list,注意一定要写th:inline

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yongjiutongmi53151/article/details/87856001
<script type="text/javascript" th:inline="javascript">
	var saveOrEdit=[[${eItem.id}]]+"";
	if(saveOrEdit==""){
		var saveInsert = function(){
			doSave('/employee/insert');
		}
	}else{
		var saveUpdate = function(){
			doSave('/employee/update');
		}
		
		
		var json =JSON.parse([[${listDepItem}]]);
		console.log(json);
        for(var p in json){
        	$('#depID').combobox('setValues', p.id);
        	$('#depID').combobox('setTexts', p.depName);
        	
        }
		
		 $.each(tapeslist,function(i,o){
		 	alert("into each.............."+i);
            alert("o.physical_tape_id: "+o.id);
		 });
		
		var s =i.replace(/\&quot/g,"");
		
	}

猜你喜欢

转载自blog.csdn.net/yongjiutongmi53151/article/details/87856001