code: function Resolve(context, model) {
      if (model == null) {
          // 清空context
          for (var prop in context) {
              var target = context[prop];
              if (target instanceof view_1.View) {
                  var propName = target.PropertyName();
                  if (propName) {
                      if (target instanceof text_1.TextView || target instanceof choice_1.ChoiceView) {
                          target.Clear();
                      }
                      else if (target instanceof list_1.ListView) {
                          target.SetData([]);
                      }
                      else {
                          console.warn(propName + " clear failed, missing clear method!");
                      }
                  }
              }
          }
          return;
      }
      for (var prop in context) {
          var target = context[prop];
          if (target instanceof view_1.View) {
              var propName = target.PropertyName();
              if (propName) {
                  var value = model[propName];
                  if (value) {
                      // 注入
                      if (target instanceof text_1.TextView || target instanceof choice_1.ChoiceView) {
                          target.SetValue(value);
                      }
                      else if (target instanceof list_1.ListView && $.isArray(value)) {
                          target.SetData(value);
                      }
                      else {
                          console.warn(propName + " resolve failed, control type is mismatching!");
                      }
                  }
                  else {
                      console.warn(propName + " resolve failed, value invalid!");
                  }
              }
          }
      }
  }
docs: Resolve 将model中的数据注入到context中
  @param context 控件上下文
  @param model 注入模型,若为null,则清空context中的控件