https://www.jianshu.com/p/0ff03e5e942e 发现点问题,setdata方法放在create()里面获取不到真正的length长度,要放在attached()或者ready();