1、注释方法

利用 interface 和 implement 文字

注释的方式 显示的表现出来

javascript 接口定义 js的接口_javascript 接口定义

2、属性检验法