摘要:
项目中最近切换了TypeScript,运行时没有问题的,但是打包的时候会报很多的错,最后我们是在报错的文件上方加上了 '// @ts-ignore'隐藏了ts文件的报错,建议我们在使用的时候在这句代码给定相应的注释,解释一下为什么使用。 if (this.type) { // @ts-ignore: 阅读全文
posted @ 2022-09-28 16:01
jiaxin2015
阅读(1593)
评论(0)
推荐(0)
摘要:
//获取节点的位置this.node.getSiblingIndex() 插入节点的位置 find(ModalMgr.popUpRoot)?.insertChild(this.uiModal.node, 1); 阅读全文
posted @ 2022-09-28 15:56
jiaxin2015
阅读(32)
评论(0)
推荐(0)
摘要:
let spriteFrame = new SpriteFrame(); if (!this.renderTexture) { let renderTexture = this.renderTexture = new RenderTexture(); let frameSize = view.get 阅读全文
posted @ 2022-09-28 14:56
jiaxin2015
阅读(41)
评论(0)
推荐(0)

浙公网安备 33010602011771号