今天由于要复习,做的东西不多,做了一个可视化图表联动的万能模板!
图表联动的js代码
这是用的hbuilder写的数据单独保存到一个json中,至于和后台交互,直接写一个从后台传servlet的json就OK了
[{"name":"亮亮","value":20}, {"name":"亮亮2","value":202}, {"name":"亮亮4","value":100}, {"name":"亮亮5","value":150}, {"name":"亮亮6","value":180}, {"name":"亮亮7","value":400}, {"name":"亮亮8","value":100}, {"name":"亮亮2","value":150}, {"name":"亮亮2","value":180}, {"name":"亮亮2","value":400}, {"name":"亮亮2","value":100}, {"name":"亮亮2","value":150}, {"name":"亮亮2","value":180}, {"name":"亮亮4","value":100}, {"name":"亮亮51","value":150}, {"name":"亮亮61","value":180}, {"name":"亮亮71","value":400}, {"name":"亮亮81","value":100}, {"name":"亮亮22","value":150}, {"name":"亮亮23","value":180}, {"name":"亮亮25","value":400}, {"name":"亮亮25","value":100}, {"name":"亮亮24","value":150}, {"name":"亮亮28","value":180}, {"name":"亮亮28","value":400}, {"name":"亮亮29","value":600}]
我们老师说,如果在编程过程中不总结自己的函数库,你永远是一个熟练的编程的工具人,所以我现在在接触一个新东西的时候,开始写一个对应的万能模板
给张截图吧:
今天在一个就是开始复习期末考试,所以今天做的东西不是很多
ok 就这么多!!!!!!!!!!!!!!!!!!!!!1