当前位置:网站首页>Call the interface to get the time
Call the interface to get the time
2022-04-23 05:25:00 【Courtesy.】
<html>
<!-- Date call -->
<div class="center">
<div class="center-one">
//2022 year 3 month
<div class="left">
<text type="date" value="{
{params.gregoriandate}}"></text>
</div>
// the 14th day of the second lunar month
<div class="right">
<text> Lunar calendar {
{
params.lunardate}}</text>
</div>
</div>
<div class="center-two">
//16 Number
<div class="text-div">
<text class="text">{
{
params.day}}</text>
</div>
</div>
<div class="center-three">
<div class="text-div">
// Wednesday
<div class="left">
<text>{
{
params.week}}</text>
</div>
<div class="right">
//Wednesday
<!-- <text class="text">{
{
params.weekEng}}</text> -->
</div>
</div>
</div>
// Defibrillation 、 Treatment 、 Travel 、 Avoid marriage
<div class="center-four">
<div class="text-div">
<text class="text-four">{
{
params.fitness}}</text>
</div>
</div>
</div>
<js>
private: {
"params": {
gregoriandate: '',
lunardate: '',
date: '',
day: '',
weekEng:'',
fitness: '',
},
},
ranbowIndex(){
var _this = this
fetch.fetch({
url:'https://app.kuaiyingyong.vip/qucikapp/life/date',
responseType: 'json'
}).then(res => {
var data=res.data.data.data;
if(data.code==200){
var list=data.newslist;
for(var i=0;i<list.length;i++){
var data=list[i];
//2022 year 3
var gregoriandate= new Date(data.gregoriandate)
gregoriandate=gregoriandate.getFullYear()+" year "+(gregoriandate.getMonth()+1)+" month ";
_this.params.gregoriandate =gregoriandate;
//16
_this.params.day = new Date(data.gregoriandate).getDate();
if(data.id){
_this.id=data.id;
}
// the 14th day of the second lunar month
_this.params.lunardate=data.lubarmonth+data.lunarday;
// var week = new Date(data.week)
// week = ' week ' + ' One, two, three, four, five, six '.charAt(week.getDay());
// _this.params.week=data.week;
// _this.params.weekEng=data.weekEng;
// Defibrillation 、 Treatment 、 Travel 、 Avoid marriage
_this.params.fitness=data.fitness;
}
}else{
alert(" The Internet is busy , Please try again later ");
}
})
},
css
Insert a code chip here
版权声明
本文为[Courtesy.]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220544339470.html
边栏推荐
- selenium預先加載cookie的必要性
- JS time format conversion
- 【openh264】cmake: msopenh264-static
- 2021 年 25 大 DevOps 工具(下)
- Top 25 Devops tools in 2021 (Part 2)
- Collaboration future object and concurrent futures
- Three 之 three.js (webgl)简单实现根据点绘制线/弧线(基于LineGeometry / Line2 / LineMaterial,绘制两点基于圆心的弧线段)
- JSP -- Introduction to JSP
- Laravel [view]
- 2021-10-12
猜你喜欢

How to add beautiful code blocks in word | a very complete method to sort out and compare

Using PHP post temporary file mechanism to upload arbitrary files
Redis的基本知识

相机成像+单应性变换+相机标定+立体校正

Kanban Quick Start Guide

2021-11-08

MFC implementation resources are implemented separately by DLL

Open source rule engine - Ice: dedicated to solving flexible and complex hard coding problems

When is it appropriate for automated testing? (bottom)
Basic knowledge of redis
随机推荐
egg测试的知识大全--mock、superTest、coffee
varnish入门
Interview summary
Cloud computing and cloud native architecture design of openshift
TSlint注释忽略错误和RESTful理解
phphphphphphphp
MFC实现资源单独Dll实现
工具在数字化转型中扮演了什么样的角色?
Mairadb数据库基本操作之数据管理
My old programmer's perception of the dangers and opportunities of the times?
使用宝塔+xdebug+vscode远程调试代码
Open source rule engine - Ice: dedicated to solving flexible and complex hard coding problems
2022年最热门的招聘技术技能是什么,您绝对想不到
egg中的多进程模型--egg文档搬运工
The concept of meta universe is popular. Is virtual real estate worth investing
源码剖析Redis中如何使用跳表的
!!!!!!!!!!!!!!!!!!
Source code analysis of how to use jump table in redis
低代码和无代码的注意事项
Asynchronous iterator & asynchronous generator & asynchronous context manager