ts出现报错Declaration of public instance field not allowed after declaration of public instance method. Instead, this should come at the beginning of the class/interface.的解决办法
原因分析:声明变量之前插入了函数
解决方案:将变量申明提到最前边
	错误写法:
	
	
	 
	正确写法:
	
	
	 
总结:
在ts中变量一定要写在函数的上方才可以。
