老师啊,程序运行没问题,就是不显示菜单啊
menu{"button":[{"key":"11","name":"click菜单","sub_button":[],"type":"click"},{"name":"view菜单","sub_button":[],"type":"view","url":"http://www.imooc.com"},{"name":"菜单","sub_button":[{"key":"31","name":"扫码事件","sub_button":[],"type":"scancode_push"},{"key":"32","name":"地理位置","sub_button":[],"type":"location_select"}],"type":""}]}
创建菜单成功