可以,能够将hindi unicode字符保存到多个字段的mongodb中

时间:2018-01-13 06:43:01

标签: angularjs mongodb unicode hindi unicode-escapes

可以将hindi unicode字符保存到多个字段的mongodb中

  const WordsSchema = mongoose.Schema({

  word1:{
    type: String,
    required: true,
      language_override:"Hindi"
  },
  word2:{
    type: String,
    required: true,
      language_override:"Hindi"
  }
});

关于设置language_override我能够保存word1,但它不能保存word2

角度侧的代码是 - >

 <input class="form-control keyboardInput" id="Hindimeaning" [(ngModel)] ="word1" name="word1" placeholder="Meaning in Hindi 1" type="text">

<input class="form-control keyboardInput" id="Hindimeaning2" [(ngModel)] ="word2" name="word2" placeholder="Meaning in Hindi 2" type="text">

如何为两个输入节省价值......

0 个答案:

没有答案