Android-通知栏上的RemoteView 学习自 <Android开发艺术探索> https://developer.android.google.cn/reference/android/widget/RemoteViews RemoteView漫谈 什么是RemoteView?先找官方文档 以下内容来自于RemoteViews类的官方文档 A class that describes a view hierarchy that can be displayed in another
var d = new Date();var date = d.getFullYear() + "年" +(d.getMonth() + 1) + "月" + d.getDate() + "日"; var myDate = new Date();myDate.getYear(); //获取当前年份(2位)myDate.getFullYear(); //获取完整的年份(4位,1970-????)myDate.getMonth()
js获取当前时间 //获取当前时间,格式YYYY-MM-DD function getNowFormatDate() { var date = new Date(); var seperator1 = "-"; var year = date.getFullYear(); var month = date.getMonth() + 1; var strDate = date.getDate(); if (month >= 1 && month <= 9) {