提交 96888c1a 编写于 作者: 杜庆泉's avatar 杜庆泉

增加console date相关示例

上级 1c2eb11f
......@@ -4,6 +4,8 @@
<button @click="logInt">打印整数</button>
<button @click="logObject">打印对象</button>
<button @click="logFunction">打印函数</button>
<button @click="logDate">打印日期</button>
<button @click="logDateCombine">组合打印日期</button>
</template>
<script>
......@@ -12,7 +14,9 @@
logIntTest,
logFloatTest,
logObjectTest,
logFunctionTest
logFunctionTest,
logDateTest,
logDateCombineTest
} from '@/uni_modules/uts-advance'
......@@ -39,6 +43,12 @@
logFunction() {
logFunctionTest()
},
logDate() {
logDateTest()
},
logDateCombine() {
logDateCombineTest()
},
}
}
......
......@@ -447,6 +447,16 @@ export function logFunctionTest(){
console.log(testFun)
}
export function logDateTest(){
console.log(new Date())
}
export function logDateCombineTest(){
console.log("现在的日期是",new Date()," 以上是日期信息")
}
/**
*
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册