| | |
| | | } |
| | | return false |
| | | }, |
| | | attrTypeIsNumber: function(type) { |
| | | if (attrTypeIsInt(type) || attrTypeIsFloat(type)) { |
| | | return true |
| | | } |
| | | return false |
| | | }, |
| | | attrTypeIsFloat: function(type) { |
| | | if (type == '浮点数' || type == 'float') { |
| | | return true |
| | | } |
| | | return false |
| | | }, |
| | | attrTypeIsInt: function(type) { |
| | | if (type == '整数' || type == 'int') { |
| | | return true |
| | | } |
| | | return false |
| | | }, |
| | | |
| | | attrTypeIsFloat: function(type) { |
| | | if (type == '浮点数' || type == 'float') { |
| | | return true |
| | | } |
| | | return false |
| | | }, |
| | | attrTypeIsDict: function(type) { |
| | | if (type == '字典' || type == '字典-字符串' || type == '字典-整数' || type == 'dict' || type == 'dict-char' || |
| | | type == 'dict-int') { |