Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery-如何使用恫吓时间设置毫秒?_Jquery - Fatal编程技术网

jQuery-如何使用恫吓时间设置毫秒?

jQuery-如何使用恫吓时间设置毫秒?,jquery,Jquery,我要做的是使用,并且能够选择毫秒 为了做到这一点,我使用了下一个代码- <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script&

我要做的是使用,并且能够选择毫秒

为了做到这一点,我使用了下一个代码-

    <html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script>
    <script type="text/javascript" src="Intimidatetime.js"></script>

    <script>

        $(function () {


            $('#ex_basic_1').intimidatetime({
                //format: 'u',
                previewFormat: 'HH:mm:ss:l',
            })

        });


    </script>

</head>
<body>

    <input type="text" id="ex_basic_1" value="" class="inputFull" />


</body>
</html>

$(函数(){
$('ex#u basic_1')。恐吓时间({
//格式:“u”,
预览格式:“HH:mm:ss:l”,
})
});
但问题是,我没有得到毫秒的select输入,我只得到其他select选项(年、月、日、小时、分钟和秒)

有人知道我该怎么做吗

尝试使用如下“格式”:

    $('#ex_basic_1').intimidatetime({
        previewFormat: 'yyyy-MM-dd HH:mm:ss:l',
        format: "yyyy-MM-dd HH:mm:ss:l"
    })