Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88746

cc.instantiate执行深拷贝不能拷贝Array对象

$
0
0

@superyyl 写道:


let a = [1, 2, 3, 4, 5, 6];
let b = cc.instantiate(a);
cc.log('a', a);//[1,2,3,4,5,6]
cc.log('b', b);//undefined

接口定义:
export function instantiate<T>(original: T): T;

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88746

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>