Untitled

mail@pastecode.io avatar
unknown
javascript
3 years ago
776 B
1
Indexable
Never
var script = document.createElement('script');
script.src = 'https://code.jquery.com/jquery-3.4.1.min.js';
script.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(script);
$.ajax({
    url: 'https://sschool.tp.edu.tw/ecampus/classpai/enter',
    type: "POST",
    contentType: "application/json;charset=utf-8",
    dataType: "json",
    data: '{"client":"30b5c882df1a94538a552ff7d342d530","kiosk":"69f8e315-28e6-e811-80d1-d43d7e78b701","card":"3197FC53"}',
    header:'{"Origin": "https://sschool.tp.edu.tw/ecampus/classpai"}',
    timeout: 10000,
    success: function(json,status,xhr){
        console.log(json);
    },
    error: function(e){
        console.log(e);
    }
    ,complete: function(){
        console.log("Complete");
    }
});