这是我的HTML:
label for="simple-input" class="Label">{{item.name}}</label>
<input type="date" class="Input" id="exampleInputName" value="new Date([value.valuwwe])">
这是我的JSON:
{
"name": "Date Field",
"namessId": 8717,
"category": "Date Field",
"categsssoryId": 8718,
"descrssiption": "Date Field",
"descriptionId": 8716,
"specreType": 5,
"maxValue": "6/7/2017 12:00:00 AM",
"minValue": "6/7/2017 12:00:00 AM",
"value": {
"valuwwe": "01/01/0001 00:00:00",
"vasslueId": 8719,
"scssvId": 1007,
"isDesfault": false
}
我正在使用new date()
,但它不起作用。
答案 0 :(得分:0)
在您的HTML中,尝试
< ... value="new Date(item.value.valuwwe)">