jQuery MiniUI
标题:
请问<input> 标签下可以使用渲染吗?
[打印本页]
作者:
zyk2016
时间:
2018-3-14 10:15:16
标题:
请问<input> 标签下可以使用渲染吗?
JSP:
<tr>
<td style="width: 300px;">差错来源:</td>
<td colspan="3"><input id="errorSource" name="errorSource" class="mini-textbox" style="width: 130px;" required="true" value="${obj.errorSource}" allowInput="false"
renderer="theRenderer"
/></td>
</tr>
JS:
//渲染差错来源
function theRenderer(e){
alert("渲染");
if (e.value == '1') {
return '系统';
} else {
return '人工录入';
}
}
发现渲染器不起作用,有什么方法实现吗?
作者:
dforce
时间:
2018-3-14 10:44:13
textbox没有什么渲染,renderer是表格的列的方法。
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2