?微信小程序需要的数据类型包括JSON(JavaScript Object Notation)、XML(Extensible Markup Language)、HTML(Hypertext Markup Language)等。
讲解下循环输出元素
这里写描述
这里写描述
后台存储的数据给事
{
var local_database = [
{
date: "Sep 18 2016",
post_image: "/images/1jpg",
text: "美呀,美呀",
view_num: 112,
collect_num: 96,
turn_num: 515,
author_img: "/images/6jpg",
author:"高晴",
dateTime:"24小时",
detail:"我爱你,爱的如此深沉",
postId:0,
music:{
url: 'down/46993mp3',
title: "雪の华-南条爱乃",
coverImg: "/music/photo_new/T002R150x150M000001TEc6V0kjpVCjpgmax_age=2592000"
},
},
{
date: "Sep 18 2016",
post_title: "冬日校花",
post_image: "/images/2jpg",
text: "美呀,美呀",
view_num: 112,
collect_num: 96,
turn_num: 515,
author_img: "/images/6jpg",
author: "高晴",
dateTime: "24小时",
detail: "我爱你,爱的如此深沉",
postId: 1,
music: {
url: '/yq/5092537mp3',
title: "爱你-陈芳语",
coverImg: "/music/photo_new/T002R150x150M000001TEc6V0kjpVCjpgmax_age=2592000"
},
},
{
date: "Sep 18 2016",
post_title: "冬日校花",
post_image: "/images/3jpg",
text: "美呀,美呀",
view_num: 112,
collect_num: 96,
turn_num: 515,
author_img: "/images/6jpg",
author: "高晴",
dateTime: "24小时",
detail: "我爱你,爱的如此深沉",
postId: 2,
music: {
url: '/yq/204586755mp3',
title: "云烟成雨-房东的猫",
coverImg: "music/photo_new/T002R150x150M000001TEc6V0kjpVCjpgmax_age=2592000"
},
},
{
date: "Sep 18 2016",
post_title: "冬日校花",
post_image: "/images/4jpg",
text: "美呀,美呀",
view_num: 112,
collect_num: 96,
turn_num: 515,
author_img: "/images/6jpg",
author: "高晴",
dateTime: "24小时",
detail: "我爱你,爱的如此深沉",
postId: 3,
music: {
url: '/yq/213919334mp3',
title: "Your Song-Lady Gaga",
coverImg: ">
以上就是关于微信开发小程序需要的数据是什么类型全部的内容,包括:微信开发小程序需要的数据是什么类型、微信小程序这种json数据要怎么在前端循环输出{"0":{"day":"7","time_data":"数据"}}、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)