computed 函数接受两种类型的参数,一个是getter 函数,一个是拥有getter 和setter 函数的对象,通过判断参数的类型,我们初始化了函数内部定义的getter 和setter 函数。
確定! 回上一頁