在手機應用的開發過程當中,會遇到因爲手機網絡慢,數據庫同時插入重複數據的問題。本人測試發現,用session並不能很好的解決問題,須要配合如下方式,特整理以下:html
https://zhidao.baidu.com/question/1691289736760700868.htmlajax
ajax提交,防止數據重複:數據庫
http://www.cnblogs.com/alicePanZ/p/5071045.html網絡
比較深刻一些的方法:session
http://blog.csdn.net/tengzhaorong/article/details/16825451測試
數據庫的索引惟一性.net
http://network.51cto.com/art/201506/478867.htmhtm