我看到rubix代码
http://wrapbootstrap.com/preview/WB09498FH(网站点击演示点击)
它是反应组件中的代码
javascript
//react ES6
var InboxItem = React.createClass({
  mixins: [State, Navigation],
  statics: {
    ID: 0,
    resetID: function() {
      InboxItem.ID = 0;
    },
    getID: function() {
      return ++InboxItem.ID;
    }
  },
  handleClick: function(e) {
    e.preventDefault();
    e.stopPropagation();
    this.transitionTo('/app/mailbox/mail');
  },
  render: function() {
    var classes = classNames({
      'inbox-item': true,
      'unread': this.props.unread
    });
    var props = {
      href: '/app/mailbox/mail',
      onClick: this.handleClick,
      ...this.props,
      className: classes
    };
    return (
      <a {...props}>
        <div className='inbox-avatar'>
          <img src={this.props.src} width='40' height='40' className={this.props.imgClass + ' hidden-xs'} />
          <div className='inbox-avatar-name'> …我正在阅读BemTv的代码.然后我看到了如下奇怪的Javascript代码.
//n = {} , r = [5,1]
! function e(t, n, r) {
    console.log(t)
    function i(s, a) {
        if (!n[s]) {
            if (!t[s]) {
                var c = "function" == typeof require && require;
                console.log(require);
                if (!a && c) return c(s, !0);
                if (o) return o(s, !0);
                throw new Error("Cannot find module '" + s + "'")
            }
            var u = n[s] = {
                exports: {}
            };
            t[s][0].call(u.exports, function(e) {
                var n = t[s][1][e];
                return i(n ? n …使用react-big-calendar.js和moment.js
setLocalizer代码
moment.locale('ko');
BigCalendar.setLocalizer(
  BigCalendar.momentLocalizer(moment)
);
一周的第一天总是星期天
我希望从星期一开始看.
相关网址.
https://github.com/intljusticemission/react-big-calendar/issues/28
但没有例子.
我该怎么办?
找到答案
moment.locale('ko',{
  week:{
    dow : 1
  }
});
我可以为一个PeerConnection创建多个数据通道吗?你能举例说明它是如何实现的,还有其他不可能的原因?
我不能使用以下方法.
因为我只使用datachannel(不使用getUserMedia)
<script>
    peerConnection.removeStream(remoteStream)
    remoteVideo.onerror = null;
    remoteVideo.pause();
    remoteVideo.src = undefined;
    remoteStream.stop();
    remoteStream.onended = null;
    remoteStream = null;
    peerConnection.removeStream(localStream)
    localVideo.onerror = null;
    localVideo.pause();
    localVideo.src = undefined;
    localStream.stop();
    localStream.onended = null;
    localStream = null;
</script>
有没有办法关闭数据通道?