| 1234567891011121314151617181920212223242526 |
- // easyui的格式化js包
- function formatDateTime(value, row, index){
- try{
- if(value==null){
- return null;
- }
- return (new Date(value)).Format("yyyy-MM-dd hh:mm:ss");
- }catch (e) {
- // TODO: handle exception
- return null;
- }
-
- }
- function formatDate(value, row, index){
- return (new Date(value)).Format("yyyy-MM-dd");
- }
-
- /*标签打印,打印个数格式化*/
- function formatFldTp(value, row, index) {
- if (row.fldTp == 1) {
- return "-";
- } else {
- return value;
- }
- }
|