jQuery MiniUI

标题: getValue能重写吗 [打印本页]

作者: Onion    时间: 2016-12-21 09:50:07     标题: getValue能重写吗

如题,getValue方法能重写吗?

作者: dforce    时间: 2016-12-21 11:58:02

你要做什么,需要改写什么控件的这个方法
作者: Onion    时间: 2016-12-21 15:35:11

dforce 发表于 2016-12-21 11:58
你要做什么,需要改写什么控件的这个方法

mini-spinner,getValue()不能获取格式化的数据,同时getText()需要自己去掉“,”。我的需求是getValue()直接获取格式化后的数据。
作者: dforce    时间: 2016-12-21 16:40:41

Onion 发表于 2016-12-21 15:35
mini-spinner,getValue()不能获取格式化的数据,同时getText()需要自己去掉“,”。我的需求是getValue() ...

getFormatValue可以获取格式化数据
作者: Onion    时间: 2016-12-21 16:43:24

dforce 发表于 2016-12-21 16:40
getFormatValue可以获取格式化数据

getFormatValue有“,”就是三位数字一个的那种,实际上还是要去掉才能保存。还有办法吗。
作者: dforce    时间: 2016-12-21 16:58:23

Onion 发表于 2016-12-21 16:43
getFormatValue有“,”就是三位数字一个的那种,实际上还是要去掉才能保存。还有办法吗。 ...

既然是获取格式化,就是按你输入框里面的格式获取,要去也只能你另外处理
作者: Onion    时间: 2016-12-22 16:21:33

dforce 发表于 2016-12-21 16:58
既然是获取格式化,就是按你输入框里面的格式获取,要去也只能你另外处理 ...

所以我说getValue能不能重写!
作者: felt    时间: 2016-12-22 16:47:27

Onion 发表于 2016-12-22 16:21
所以我说getValue能不能重写!

不能




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2