如果事件已绑定模型,即设置了path=’XXX‘,则给控件赋值是无效的,
<div class="col-sm-10"> <#form:textarea path="remarks" rows="4" maxlength="500" class="form-control"/> </div>
需要将path=’ config‘ 改为name=config id=config value="${iotBigScreen.config}"
<div class="col-sm-10" > <!--<#form:textarea path="config" rows="4" maxlength="3000" class="form-control"/>--> <#form:textarea name="config" id="config" value="${iotBigScreen.config}" rows="4" maxlength="3000" class="form-control"/> </div>
赋值的时候:
function setConfig(content) { document.getElementById('config').value=JSON.stringify(content); }
标签:控件,jeesite,绑定,content,path,config,赋值 From: https://www.cnblogs.com/lingmin/p/17291297.html