我在Javascript中有以下数组:
[["30-11-2013", "November 2013"], ["01-11-2013", "November 2013"], ["30-11-2012", "November 2012"]]
它应该填充一个 ng 选项:
"ng-options" => "o as o for o in options", "value" => "o"
这会产生这个选项:
<option value="1">01-11-2013,November 2013</option>
但是我需要
<option value="01-11-2013">November 2013</option>