123456789101112131415161718192021222324 |
- /**
- * Created by Mai on 2017/3/10.
- */
- var GetProject = function (proj_id, callback) {
- $.ajax({
- type:"POST",
- url: '/getProject',
- data: {'data': JSON.stringify({"user_id": userID, "proj_id": proj_id})},
- dataType: 'json',
- cache: false,
- timeout: 50000,
- success: function(result){
- if (result.error === 0) {
- callback(result.data);
- } else {
- alert('error: ' + result.message);
- }
- },
- error: function(jqXHR, textStatus, errorThrown){
- alert('error ' + textStatus + " " + errorThrown);
- }
- });
- }
|