| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title></title>
- </head>
- <body>
- <!-- <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
- <input class="input btns" type="button" value="上传" id="scwj" /> -->
- <!-- <canvas id="canvas" style="border:2px solid black;" width="200" height="200"> -->
- <div></div>
- </body>
- <script src="js/echarts.min.js"></script>
- <script src="js/jquery.min.js"></script>
- <script>
- $.ajax({
- url: 'http://192.168.5.46:28000/imgurlinfosl ',
- type: "POST",
- data: {},
- /**
- *必须false才会自动加上正确的Content-Type
- */
- contentType: false,
- /**
- * 必须false才会避开jQuery对 formdata 的默认处理
- * XMLHttpRequest会对 formdata 进行正确的处理
- */
- processData: false,
- success: function(result) {
- }
- });
- // var canvas = document.getElementById('canvas');
- // var ctx = canvas.getContext('2d');
- // var data = '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' +
- // '<foreignObject width="100%" height="100%">' +
- // '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' +
- // '<em>I</em> like ' +
- // '<span style="color:white; text-shadow:0 0 2px blue;">' +
- // 'cheese</span>' +
- // '</div>' +
- // '</foreignObject>' +
- // '</svg>';
- // var DOMURL = window.URL || window.webkitURL || window;
- // var img = new Image();
- // var svg = new Blob([data], {type: 'image/svg+xml'});
- // var url = DOMURL.createObjectURL(svg);
- // img.onload = function() {
- // ctx.drawImage(img, 0, 0);
- // DOMURL.revokeObjectURL(url);
- // }
- // img.src = url;
-
- </script>
- </html>
|