js字符串分割问题
lxbgg 2013-02-26 09:27:27
118.532016,31.758281|118.522853,31.758066|118.515559,31.764329|118.8255715,31.8690843|118.515092,31.755855|118.532411,31.755763|
用一个循环分割成如下,请问怎么分割呢?
new BMap.Point(118.532016,31.758281);
new BMap.Point(118.522853,31.758066);
new BMap.Point(118.515559,31.764329);
new BMap.Point(118.8255715,31.8690843);
new BMap.Point(118.515092,31.755855);
new BMap.Point(118.532411,31.755763);