电商系统 常用代码段

判断是否为空
console.log(this.validatenull(obj1))

对象深拷贝

var obj1 = {
    name:'张三'
  }
var obj2 = this.deepClone(obj1);

下拉项为字典

{
  label: "类型",
  prop: "type",
  rules: [{
	required: true,
	message: "请输入类型",
	trigger: "blur"
  }],
  type: "select",
  dicUrl: "/api/blade-system/dict/dictionary?code=pms_store_type",
  props: {
	label: "dictValue",
	value: "dictKey"
  },
},

1

上一篇:JVM垃圾回收相关算法


下一篇:对象的深复制与浅复制