当前位置: 首页 > news >正文

网站怎么正确的做内链接新媒体营销推广公司

网站怎么正确的做内链接,新媒体营销推广公司,长寿做网站的电话,wordpress js文件一、操作环境 操作系统: Windows 11 专业版、IDE:DevEco Studio 3.1.1 Release、SDK:HarmonyOS 3.1.0(API 9) 二、效果图 可实现两种选择方式,可带时分选择,也可不带,使用更加方便。 三、代码 SelectedDateDialog…
一、操作环境

操作系统:  Windows 11 专业版、IDE:DevEco Studio 3.1.1 Release、SDK:HarmonyOS 3.1.0(API 9)

二、效果图

       

可实现两种选择方式,可带时分选择,也可不带,使用更加方便。

三、代码

SelectedDateDialog.ets文件
/*** 时间选择*/
@CustomDialog
export struct SelectedDateDialog {private selectedDate: Dateprivate isShowTime: Visibility = Visibility.Hidden //是否展示时分栏private callback: (value: Date) => voidcontroller: CustomDialogController //自定义dialog必须声明aboutToAppear() {console.log("时间选择展示:" + JSON.stringify(this.selectedDate))}build() {Column() {Row() {DatePicker({start: new Date('2000-1-1'), //起始时间end: new Date('2050-1-1'), //结束时间selected: this.selectedDate //默认所选时间}).width(this.isShowTime == Visibility.Visible ? '60%' : '100%') //不显示时分,则宽为100.height('100%').lunar(false) //日期是否显示农历。 - true:展示农历。 - false:不展示农历。 默认值:false.onChange(value => {// console.log("轮换结果:" + JSON.stringify(value))this.selectedDate.setFullYear(value.year, value.month, value.day)})TimePicker({ selected: this.selectedDate }).width('35%').height('100%').visibility(this.isShowTime).useMilitaryTime(true) //24小时制.onChange(value => {// console.info('select current date is: ' + JSON.stringify(value))if (value.hour >= 0) {this.selectedDate.setHours(value.hour, value.minute)}})}.width('100%').height('80%')Blank()Button('确定').borderRadius('3').width('40%').margin({ bottom: 20 }).onClick((event: ClickEvent) => {console.log('选择时间:' + JSON.stringify(this.selectedDate))this.callback?.(this.selectedDate)this.controller.close()})}.width('100%').height('50%')}
}

使用其中的参数isShowTime控制是否显示时分栏的选择,Visibility.Visible为显示,Visibility.Hidden不显示

在page中的调用方式:

 @State selectInspectionTime: Date = new Date()selectInspectionDialog: CustomDialogControllerinitSelectInspectionDialog() {this.selectInspectionDialog = new CustomDialogController({builder: SelectedDateDialog({ selectedDate: this.selectInspectionTime, isShowTime: Visibility.Visible,callback: (value) => {let time = value.getFullYear() + "-" + (value.getMonth() + 1) + "-" + value.getDate()+ "T" + value.getHours() + ":" + value.getMinutes() //月份从0开始,故需+1} }),cancel: this.closeInspectionDialog, //点击空白区域回调autoCancel: true,alignment: DialogAlignment.Bottom,offset: { dx: 0, dy: -20 },gridCount: 4,customStyle: false})}closeInspectionDialog() {console.info('Click the callback in the blank area')this.selectInspectionDialog.close()}openDialog() {//点击事件调用打开dialogthis.selectInspectionDialog.open()}

http://www.15wanjia.com/news/50382.html

相关文章:

  • 珠海网站设计网络优化搜索引擎竞价排名
  • 福田网站开发故事式软文范例100字
  • 网站科技感页面设计网站收录情况查询
  • 专业的企业智能建站价格便宜找回今日头条
  • 上海市住房和城乡建设厅官方网站seo顾问服务 乐云践新专家
  • 晋城购物网站开发设计推广公司有哪些公司
  • 做摄影网站百度指数官网入口
  • 厦门的网站建设公司北京seo顾问服务公司
  • 生成微信小程序seo广告优化
  • 音乐类网站模板怎么开发一款app软件
  • 网站开发成本会计科目免费推广网站大全
  • 做网站服务器是什么上优化seo
  • wordpress分类图标列表惠州seo推广公司
  • 电脑版和手机版网站怎么做的抖音seo排名软件哪个好
  • 全国做网站的公司磁力库
  • 有什么做调查的网站要做网络推广
  • wordpress打开word群排名优化软件
  • 公司推广哪个平台好2022最好的百度seo
  • 塘沽做网站比较好的专业关键词排名优化软件
  • 绵阳公司商务网站制作手机网站百度关键词排名
  • 有没有做网页的网站seo营销推广多少钱
  • 做淘宝的网站有哪些外链相册
  • 网站建设需要使用阿里云吗八百客crm系统登录入口
  • 在线做文档的网站阿里云域名购买
  • 做网站用python好还是PHP好网络网站推广选择乐云seo
  • 公司建设网站重要性微平台推广
  • 上海做网站大的公司大数据查询
  • 邢台企业做网站最近发生的重大新闻事件
  • 福建已经宣布封城的城市seo教学免费课程霸屏
  • 做商城网站哪里买足球世界排名国家最新