12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="Generator" content="EditPlus®">
- <meta name="Author" content="">
- <meta name="Keywords" content="">
- <meta name="Description" content="">
- <title>Document</title>
- <script src="assets/js/jquery-3.1.0.js"></script>
- <script type="text/javascript">
- function doquery(){
- method = "getNewCameraInfo";
- data = "&1&10";
- $.ajax({
- type: "POST",
- url: "http://localhost:8080/HK_HKVISION/GetVideo",
- data:{method:method,data:data},
- dataType: "text",
- success: function(data) {
- alert(data);
- if (data.isSuccess) {
- showMsg('添加成功!');
- listAllUser();
- } else {
- showMsg('添加失败!');
- listAllUser();
- }
- },
- error: function(e) {
- console.log("ajax error");
- },
- });
- }
- function doq(){
- $.ajax({
- type: "post", // 或者 "get"
- url: "http://localhost:8080/test/servlet/requestTest",
- dataType: "text",
- data:"",
- jsonp: "callback",
- success: function(json) {
- var ss = "";
- },
- error:function(data) {
- var ss = "";
- }
- });
- }
- </script>
- </head>
- <body>
- <div>
- <input type="button" value = "aaa" onclick="doquery()"/>
- </div>
- </body>
- </html>
|