diff options
Diffstat (limited to 'openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/SendMsg.js')
-rw-r--r-- | openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/SendMsg.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/SendMsg.js b/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/SendMsg.js new file mode 100644 index 00000000..b898d6ad --- /dev/null +++ b/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/SendMsg.js @@ -0,0 +1,20 @@ +var sendMsg = { + get : "get", + post : "post" +} + +function request(url, requestType, data, success, error, async) { + var setting = { + url : url, + async : async ? async : false, + type : requestType, + dataType : "json", + contentType : 'application/json;charset=UTF-8', + data : data, + success : success, + error : error + } + + $.ajax(setting); + +}
\ No newline at end of file |