小编Wal*_*hub的帖子

如何在 react-native-webrtc 中使用 simple-peer

我正在尝试在简单对等方的构造函数中使用 react-native-webrtc

import wrtc from 'react-native-webrtc';

const peer = new SimplePeer({initiator: true, wrtc: wrtc});

Run Code Online (Sandbox Code Playgroud)

我得到的错误是

ExceptionsManager.js:179 Error: No WebRTC support: Not a supported browser

Run Code Online (Sandbox Code Playgroud)

p2p webrtc react-native simple-peer

7
推荐指数
1
解决办法
1154
查看次数

除了"g"之外,如何用""替换字符串中的所有字符?

如何"g"从字符串中删除除字符之外的所有字符,数字和符号,并将其替换为" "

string = "bi2gger 1is 00ggooder"
Run Code Online (Sandbox Code Playgroud)

ruby

4
推荐指数
1
解决办法
86
查看次数

jekyll GitHub 页面页面未加载资产

我有一个 GitHub 托管 https://waltershub.github.io回购是https://github.com/waltershub/waltershub.github.io

该站点使用所有资产和 css 在本地正确构建,但在托管版本上没有显示

控制台中的错误是:

[Error] Failed to load resource: the server responded with a status of 404 (HTTP/2.0 404) (font-awesome.css, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (HTTP/2.0 404) (dark.css, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (HTTP/2.0 404) (function.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (HTTP/2.0 404) (walt.jpg, …
Run Code Online (Sandbox Code Playgroud)

assets jekyll github-pages jekyll-theme

4
推荐指数
1
解决办法
1846
查看次数

根据道具设置导航栏标题

如何根据道具设置导航栏的标题,我想做下面的事情。

static navigationOptions = {
title: this.props.navigation.state.params.name,
Run Code Online (Sandbox Code Playgroud)

};

react-native react-navigation

2
推荐指数
1
解决办法
2404
查看次数