我有一个变量,其中包含这样的值..
["09:09:49", "00:14:09", "00:05:50", "02:38:02", "01:39:28"]
现在根据我的需要,我必须像这样组成..
[09:09:49, 00:14:09, 00:05:50, 02:38:02, 01:39:28]
为此我尝试了
callduration=[];
callduration=["09:09:49", "00:14:09", "00:05:50", "02:38:02", "01:39:28"];
var newstring = callduration.replace(/\"/g,'');
但它给出了错误..
TypeError: callduration.replace is not a function
var newstr=callduration.replace(/\"/g,'');
请帮我。提前致谢..