Created
June 28, 2016 08:28
-
-
Save YidaChen/aa073247aa0d1781b9620488a96fe40b to your computer and use it in GitHub Desktop.
ajax.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.ajax({ | |
| url: 'ajax/edit/marker.php', | |
| type: 'POST', | |
| dataType: 'json', | |
| data: {action: 'delete', type: typeStr, id: id} | |
| }) | |
| .done(function(data) { | |
| if(data){ | |
| markersType[id].setMap(null); | |
| delete markersType[id]; | |
| swal("刪除成功!", name+" 已經刪除。", "success"); | |
| } | |
| }) | |
| .fail(function() { | |
| //alert('刪除失敗'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment