You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.8 KiB
61 lines
1.8 KiB
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Demo</title>
|
|
<link rel="stylesheet" href="../../../component/pear/css/pear.css" />
|
|
</head>
|
|
|
|
<body>
|
|
<div class="layui-form">
|
|
<div class="layui-input-wrap">
|
|
<input type="text" lay-affix="clear" placeholder="请输入" class="layui-input">
|
|
</div>
|
|
<hr class="ws-space-16">
|
|
<div class="layui-input-wrap">
|
|
<input type="text" id="test" lay-affix="clear" placeholder="请输入"
|
|
class="layui-input input-width">
|
|
</div>
|
|
<hr class="ws-space-16">
|
|
<div class="layui-input-wrap">
|
|
<input type="text" value="禁用状态时" lay-affix="clear" disabled class="layui-input">
|
|
</div>
|
|
<hr class="ws-space-16">
|
|
<div class="layui-input-wrap">
|
|
<input type="text" value="只读状态时" lay-affix="clear" readonly class="layui-input">
|
|
</div>
|
|
</div>
|
|
|
|
<script src="../../../component/layui/layui.js"></script>
|
|
<script src="../../../component/pear/pear.js"></script>
|
|
|
|
<script>
|
|
layui.use(function () {
|
|
|
|
var $ = layui.jquery;
|
|
|
|
|
|
$.ajax({
|
|
url: "/QingLong/collect/getJob?job_id=4",
|
|
async: false,
|
|
type: 'GET',
|
|
success: function (res) {
|
|
$("#test").val(res.job_name);
|
|
},
|
|
error: function (xhr, status, error) {
|
|
layer.msg("获取信息异常!", {
|
|
icon: 2,
|
|
time: 1000
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html> |