请告诉我如何更改当前日期的占位符
<input type="date" v-model="selectedDate" class="dateclass" placeholder="[method tu get currentdate]">
答案 0 :(得分:0)
您可以做这样的事情
Sub test()
Dim i As Long
Dim rng As Range, cell As Range
Dim lastRow as Long
Set Wks1 = Worksheets("Sheet1")
Set Wks2 = Worksheets("Sheet2")
Set rng = Wks1.Range("C3:O69")
lastRow = Wks2.Cells(Rows.Count, 1).End(xlUp).row
For Each cell In rng
If Not (IsEmpty(cell.Value)) Then
For i = 1 To lastRow
With Wks2
If (InStr(.Cells(i, 1), cell.Value) <> 0) Or (InStr(.Cells(i, 3), cell.Value) <> 0) Then
.Cells(i, 4) = "String contains substring"
End If
End With
Next i
End If
Next cell
End Sub
请注意,您需要在占位符前面加一个冒号(:)。
答案 1 :(得分:0)
尝试此代码。
computed: {
getDateStr(){
let s = new Date().toLocaleDateString();
return s
},
},
data(){
return {
type:'text'
}
}
<input :placeholder="getDateStr" v-model="selectedDate" class="dateclass" :type="type" onfocus="(this.type='date')" id="date">