[技术分享]20171229_前台_ 码值前台显示新方法
一种新码值设置方法:加一个dicType属性,dropDownList是码值表的key。
<input type="input" name="codeName" dicType="dropDownList">
下面是控制属性的js代码:对于码值的设置,这篇博客只能提供一个思路 。
$('input').each(function(){
var dicType = $(this).attr("dicType");
if(dicType!=undefined){
//设置码值
}
});