const db = wx.cloud.database({});
const cont = db.collection(' hero');
Page({
/**
* 页面的初始数据
*/
data: {
p: [],
p1: []
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
db.collection('hero').get({
success: res => {
this.setData({
p: res.data
})
// console.log(res.data[0].herotype)
// var pp = this.data.p
// const length = pp.length
var id = parseInt(options.role)
console.log(id)
for(let i=0;i<=res.data.length;i++){
// console.log(res.data.length)
if(id==res.data[i].herotype){
this.setData({
p1: res.data[i]
})
}
}
}
}) }
<view class='big'>
<view class='list' wx:for="{{p1}}">
<image class='list-img' src='{{item.img}}'></image>
<view class='pro-body'>
<view class='list-item1'>{{item.ename}}</view>
<view class='list-item1'>{{item.name}}</view>
</view>
</view>
</view>
您好,win10远程登陆CentOS7,您参考【登录 Linux 实例】,可通过控制台WebShell(或第三方工具putty/Xshell),或VNC直接登陆。
控制台WebShell登陆
win10安装Xshell工具后登陆CentOS 7
问题中反馈安装不上GNOME,如您需使用图形化Linux,您参考【CentOS 7.2 三行命令安装图像化界面】
安装GNOME等图形化工具建议您使用2H4G以上配置云主机。最后,远程登陆Linux服务器需要开启 SSH(22号)端口。
相似问题