首页
编程
java
php
前端
首页
编程
java
php
前端
ts中动态定义变量的类型
ts中如何根据变量的值动态的去定义另外一个变量的类型
比如 type为1 则data的类型为number 如果type为2 则data的类型为string
点击展开全文