|
|
@@ -12,7 +12,8 @@
|
|
|
</div>
|
|
|
<div></div>
|
|
|
<script>
|
|
|
- window.onload =function(){
|
|
|
+ const dataList = []
|
|
|
+ window.onload = async function(){
|
|
|
var loc=location.href;
|
|
|
var n1=loc.length;
|
|
|
var n2=loc.indexOf('=');
|
|
|
@@ -25,20 +26,13 @@
|
|
|
"code": code
|
|
|
},
|
|
|
}
|
|
|
- alert()
|
|
|
- // $.ajax(
|
|
|
- // {
|
|
|
- // type:'post',
|
|
|
- // url:'http://61.164.207.46:8000/codeToFile.htm',
|
|
|
- // data:param,
|
|
|
- // dataType:'json',
|
|
|
- // async:true,
|
|
|
- // success:function(data){
|
|
|
- // console.log(data)
|
|
|
- // alert(data)
|
|
|
- // }
|
|
|
- // }
|
|
|
- // )
|
|
|
+ $.ajax({
|
|
|
+ url:'http://61.164.207.46:8000/yos/rest/index',
|
|
|
+ data:param,
|
|
|
+ type:"POST"
|
|
|
+ }).done(function (res){
|
|
|
+ alert(res)
|
|
|
+ })
|
|
|
}
|
|
|
</script>
|
|
|
</body>
|