得这么写 使用 as 转换,java写多了,总想 (UniElement ) 这样强制转换,^_^ textNode0.appendChild(uni.getElementById<UniElement>('view') as UniElement )