public string gethtml(object obj) { string result = ; system.text.regularexpressions.regex regex = new system.text.regularexpressions.regex({.*,.*,.*}); string matchresult = regex.match(obj.tostring()).tostring(); if (string.isnullorempty(matchresult)) { result = obj.tostring(); } else { string[] strs = matchresult.replace({, ).replace(}, ).split(','); result = ; result += + strs[0] + ; result += + strs[1] +
; result += + strs[2] +
; } return result; }
以上代码主要是为了获取3个值, strs[0]=759 strs[1]=+0.6 strs[0]=-0.4 这样用来显示上下