例如:http://codepen.io/Enclave88/pen/YqNpog?edit = 1010
var InputBox = React.createClass({
render: function() {
return (
<input className="mainInput" value='Some something'></input>
)
}
});
Run Code Online (Sandbox Code Playgroud) 我用mongodb
(猫鼬作为 ODM)制作了一个应用程序,但现在我想使用MySQL
(工作义务),所以我Sequelize
为此采用了模块,但我真的不明白如何将我的 userSchema 转换为用户模型及其所有方法(我'米,工作passportJs
进行身份验证,所以我有一些方法,我使用例如setpassword ...)
这里我的 userSchema (mongoose) 工作得很好。
var mongoose = require('mongoose');
var crypto = require('crypto');
var jwt = require('jsonwebtoken');
var validator = require('node-mongoose-validator');
var Schema = mongoose.Schema;
var userSchema = new Schema({
name: {
type: String,
maxlength: 50
},
mail: {
type: String,
required: true,
maxlength: 50,
index: {
unique: true
}
},
hash: String,
salt: String,
{
collection: "user"
}
);
userSchema.methods.setPassword = function(password) {
this.salt = crypto.randomBytes(16).toString('hex');
this.hash …
Run Code Online (Sandbox Code Playgroud) 有没有人看到过这个错误,字面意思是:
“未捕获的 DOMException:无法构造 'RTCPeerConnection':无法创建这么多 PeerConnection ”?
我想这是因为我没有删除连接(也许不是,也许是因为我没有提供更多内存或其他东西)。但从哪里来呢?它们在哪里积累?
我没有找到这个问题的答案,字面上,无处可寻。
几天来我试图解决这个问题。顺便说一句,没有什么愚蠢的问题,对吧?
UPD:忘记添加我使用 sip.js 库。
如何打印、显示或查找您当前的 VueJS 版本?
我能看到的所有内容都在我的 package.json 对象中,它说的依赖项 ^2.5.13
"dependencies": {
"vue": "^2.5.13",
}
Run Code Online (Sandbox Code Playgroud) javascript ×3
domexception ×1
input ×1
mongodb ×1
mongoose ×1
mysql ×1
node.js ×1
reactjs ×1
select ×1
sequelize.js ×1
three.js ×1
version ×1
vue.js ×1
vuejs2 ×1
webrtc ×1