💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
![](https://img.kancloud.cn/dd/bd/ddbdce8e7c9e64ca347219a643025609_684x451.png) ![](https://img.kancloud.cn/f0/09/f00936401113f9ca317de2b4c78c62b2_704x414.png) createFacory是对createElement的封装 ~~~ export function createFactory(type) { const factory = createElement.bind(null, type); // Expose the type on the factory and the prototype so that it can be // easily accessed on elements. E.g. `<Foo />.type === Foo`. // This should not be named `constructor` since this may not be the function // that created the element, and it may not even be a constructor. // Legacy hook: remove it factory.type = type; return factory; } ~~~