Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/77.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_Jquery Mobile - Fatal编程技术网

Jquery 一些简单但奇怪的问题

Jquery 一些简单但奇怪的问题,jquery,jquery-mobile,Jquery,Jquery Mobile,我有一个日期选择器: <label for="bday" style="text-align:right">Pick Date</label> <input type="date" name="bday" id="bday"> 当我选择第一个数字时,他不会出现在控件上 当我强制进行这样的选择时:$('ZIBI').val(“31”)-他没有显示在控件上 谢谢当我想得到日期时,我会这样做: var date = new Date(); var day = da

我有一个日期选择器:

<label for="bday" style="text-align:right">Pick Date</label>
<input type="date" name="bday" id="bday">
当我选择第一个数字时,他不会出现在控件上

当我强制进行这样的选择时:
$('ZIBI').val(“31”)-他没有显示在控件上


谢谢

当我想得到日期时,我会这样做:

var date = new Date();
var day = date.getDay();
var month = date.getMonth();
var year = date.getYear();

//Show it
document.write(day, month, year);

我希望它能对你有所帮助。

这是两个独立的问题。你需要清楚地陈述你的问题,如果你有两个不同的问题没有联系,你不能只把它们放在一个问题中,然后给出一个标题,而不描述其中任何一个。
var date = new Date();
var day = date.getDay();
var month = date.getMonth();
var year = date.getYear();

//Show it
document.write(day, month, year);