Brak opisu

1.html 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title></title>
  6. </head>
  7. <body>
  8. <!-- <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
  9. <input class="input btns" type="button" value="上传" id="scwj" /> -->
  10. <!-- <canvas id="canvas" style="border:2px solid black;" width="200" height="200"> -->
  11. <div></div>
  12. </body>
  13. <script src="js/echarts.min.js"></script>
  14. <script src="js/jquery.min.js"></script>
  15. <script>
  16. $.ajax({
  17. url: 'http://192.168.5.46:28000/imgurlinfosl ',
  18. type: "POST",
  19. data: {},
  20. /**
  21. *必须false才会自动加上正确的Content-Type
  22. */
  23. contentType: false,
  24. /**
  25. * 必须false才会避开jQuery对 formdata 的默认处理
  26. * XMLHttpRequest会对 formdata 进行正确的处理
  27. */
  28. processData: false,
  29. success: function(result) {
  30. }
  31. });
  32. // var canvas = document.getElementById('canvas');
  33. // var ctx = canvas.getContext('2d');
  34. // var data = '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' +
  35. // '<foreignObject width="100%" height="100%">' +
  36. // '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' +
  37. // '<em>I</em> like ' +
  38. // '<span style="color:white; text-shadow:0 0 2px blue;">' +
  39. // 'cheese</span>' +
  40. // '</div>' +
  41. // '</foreignObject>' +
  42. // '</svg>';
  43. // var DOMURL = window.URL || window.webkitURL || window;
  44. // var img = new Image();
  45. // var svg = new Blob([data], {type: 'image/svg+xml'});
  46. // var url = DOMURL.createObjectURL(svg);
  47. // img.onload = function() {
  48. // ctx.drawImage(img, 0, 0);
  49. // DOMURL.revokeObjectURL(url);
  50. // }
  51. // img.src = url;
  52. </script>
  53. </html>