在axios中ajax請示後,then()和catch()這兩個回調函數有各自獨立的做用域,若是直接在裏面訪問 this,沒法訪問到 Vue 實例:解決方法:在這兩個方法後用bind()方法,如:ios