/** * Created by Tony on 2017/6/19. */ class calculation { constructor(calcTpl) { let me = this; me.calcTpl = calcTpl; me.hasCompiled = false; }; compile(){ let me = this; me.hasCompiled = false; if (me.calcTpl && me.calcTpl.length > 0) { // } } }