Object.extend=function(props){ //继承父类 var prototype=Object.create(this.prototype) //初始化函数ctor var _Class=function(){ if (this.ctor) this.ctor.apply(this, arguments); } //当前类属性和方法 for(var k in props){ prototype[k]= props[k] } _Class.prototype = protot…
app01\model.py from django.db import models # Create your models here. class Depart(models.Model): id = models.AutoField(primary_key=True) title = models.CharField(verbose_name="部门名称", max_length=32) class UserInfo(models.Model): id = models.Aut…