react版本loading函数,通过loading.show()和loading.hide()来控制loading的显示和隐藏
npm install react-loading-func --save
npm install
npm start
http://github.dxcweb.com/react-loading-func/
loading.show()
loading.hide()
loading.show(title,options)
###options options={ ratio:1 }