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.
49 lines
1.4 KiB
49 lines
1.4 KiB
@model string
|
|
@{
|
|
Layout = null;
|
|
}
|
|
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="~/lib/jqcron/jqCron.css" />
|
|
<title></title>
|
|
</head>
|
|
<body>
|
|
<div id="app">
|
|
<div>@ViewBag.Message</div>
|
|
<form action="/">
|
|
<div>@Model</div>
|
|
<input type="text" class="cron" name="id" value="@Model" />
|
|
<button type="submit">确定</button>
|
|
</form>
|
|
</div>
|
|
|
|
<script src="~/lib/jquery/jquery.min.js"></script>
|
|
<script src="~/lib/jqcron/jqCron.js"></script>
|
|
<script src="~/lib/jqcron/jqCron.cn.js"></script>
|
|
<script>
|
|
$('input.cron').each(function () {
|
|
var cron = $(this).jqCron({
|
|
lang: 'cn',
|
|
enabled_year: true,
|
|
enabled_minute: true,
|
|
multiple_dom: true,
|
|
multiple_month: true,
|
|
multiple_mins: true,
|
|
multiple_dow: true,
|
|
multiple_time_hours: true,
|
|
multiple_time_minutes: true,
|
|
default_value: $(this).val().substr(2),
|
|
bind_method: {
|
|
set: function ($element, value) {
|
|
$element.val('0 ' + value);
|
|
}
|
|
},
|
|
no_reset_button: false
|
|
}).jqCronGetInstance();
|
|
if ($(this).hasClass('disable')) {
|
|
cron.disable();
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |