JavaScript - 获取csv列值

时间:2017-01-11 00:01:53

标签: javascript csv

如何从下面的值变量中获取单个值,这些值给出了一个这样的字符串:1001,10 / 01 / 2016,11 / 01/2016并在值之后分配给我的每个变量?



var lines = loadedString.split('\n'); //split on newlines
	for (var i = 0; i < lines.length; i++)
	{
		var value = lines[i].split('\t');
		var id;
		var start;
		var end;
	}
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:1)

就像那样:

int width=800;
int height=480;
encoder = MediaCodec.createByCodecName(codecInfo.getName());
format = MediaFormat.createVideoFormat ("video/avc", width, height);
format.setInteger(MediaFormat.KEY_MAX_INPUT_SIZE,655360); // 0.5MB but adjust it as you need.