JSFiddle - React, Tailwind, and code Playground
by Kyle Shen
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script>
$(function () {
RetrieveData();
});
function RetrieveData()
{
var apiUrl = '@Url.Content("~/get/Index")';//apiurl
//console.log(apiUrl);
$.ajax({
url: apiUrl,
type: 'get',
//data: null,
success: function (obj) {
//alert(obj);
var obj = new Object();
obj.StartInvoiceNumber='ID20180501';
obj.EndInvoiceNumber='ID20180599';
obj.CurrentInvoiceNumber='ID20180590';
obj.Stock='10';
obj.Notice='Y';
},
fail: function (err) {
alert(err);
},
dataType: 'JSON'
}).done(function(obj){
});
}
</script>
</body>
</html>