格式化问题

penID = new bas_penService().GetDynamicList(ParamQuery.Instance()

               .Select("bas_pen_id as value,pen_name as text"))



<script src="/Content/js/viewModel/com.viewModel.searchEdit.js"></script>

<script type="text/javascript">

    using(['datebox']);

    using(['combobox']);

    var data = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject



(Model));

    var viewModel = function(){         

        com.viewModel.searchEdit.apply(this,arguments);               

    com.formaterpenID = utils.fnValueToText(data.dataSource.penID);    

    }

    ko.bindingViewModel(new viewModel(data));  

</script>



formatter="com.formaterpenID"

 

 

 时间格式化

 

formatter="com.formatDate"

你可能感兴趣的:(格式化)