📜  如何在 vue js 中生成随机文本 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:52.190000             🧑  作者: Mango

代码示例1
const recipeData = {
        id: Math.ceil(Math.random()*1000000), //randomly generated id
        title: this.title,
        description: this.description,
        imageUrl: this.imageUrl,
        ingredientsName:  this.ingredientsName,
        ingredientsQuantity: this.ingredientsQuantity
      };