MCVef/static/js/charge.js
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// var bill=[{
// "id":"001",
// "name":"王五",
// "createtime":"20201013" ,
// "type":"开药",
// "docname":"张三",
// "price":"50",
// "state":false
// },{
// "id":"002",
// "name":"小六",
// "createtime":"20201017" ,
// "type":"检查",
// "docname":"张三",
// "price":"50",
// "state":true
// }
// ]
var url = location.href;
var tmp1 = url.split("?")[1];
var id = tmp1.split("=")[1]; //收费员id
$(function() {
$.ajax({
type: 'get',
dataType: 'json',
url: 'http://localhost:7266/api/FeeCollectors/' + id,
contentType: "application/json",
data: {
},
success: function(res) {
console.log(res)
$("#collectorName").val(res.CollectorName)
$("#collectorNo").val("00000" + res.FeeCollectorId)
$("#newTime").val(init())
},
error: function(er) {
alert('连接请求失败');
console.log(er)
}
});
});
function init() {
var date = new Date();
//年
var year = date.getFullYear();
//月
var month = date.getMonth() + 1;
//日
var day = date.getDate();
//时
var hh = date.getHours();
//分
var mm = date.getMinutes();
//秒
var ss = date.getSeconds();
var rq = year + "年" + month + "月" + day + "日" + hh + ":" + mm + ":" + ss;
return rq;
后面还有 230 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。