如何用字符串填充JSON数组,除以逗号

时间:2016-01-22 01:22:28

标签: angularjs json

我有一个JSON需要看起来像这样:

<textarea>

一个aaa@bbb.com, baz@foo.com, asdf@bar.com ,里面装满了电子邮件,用逗号分隔:

var React = require('react');
var ReactDom = require('react-dom');
var Router = require('react-router').Router;
var routes = require('./config/routes');
var browserHistory = require('react-router').browserHistory;

ReactDom.render(
  <Router history={browserHistory}>{routes}</Router>,
  document.getElementById('app')
);

如何使用ng-model =“poll.Participants”将分隔的字符串添加到$ scope.Participants?

0 个答案:

没有答案