我有一个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?