1、双击打开微信开发者工具,扫描登录工具,并创建一个微信小程序项目
3、进入到index.js文件,在data对象中定义color属性值
5、接着在js文件中,定义按钮点击事件searchData,并重新设置color值