- 云开发初次使用,不太会,数据获取
[图片] 我已经在数据库中事先建立了demo集合以及一条数据,但是通过图示上的方法,取出到的数据为空,请问这是为什么?是代码写的有错误吗?
2018-12-23 - 初次使用云开发,报错
[图片]我想通过我选中的代码向云开发后端的数据库获取数据,我已经实现在云开发的数据库里创建了一个demo集合,并创建了数据,但是我通过这个代码获取不到数据,报错
2018-12-16 - 请问,通过选中一部分代码,通过什么快捷键,实现快速将其注释
请问,通过选中一部分代码,通过什么快捷键,实现快速将其注释
2018-11-18 - markers图标不显示啊
[代码]var[代码] [代码]Bmob = require([代码][代码]'../../utils/bmob.js'[代码][代码]);[代码][代码]var[代码] [代码]app = getApp();[代码][代码]Page({[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]longitude: [代码][代码]""[代码][代码],[代码][代码] [代码][代码]latitude: [代码][代码]""[代码][代码],[代码][代码] [代码][代码]markers: [],[代码][代码] [代码][代码]controls: [{[代码][代码] [代码][代码]iconPath: [代码][代码]'/images/address.png'[代码][代码],[代码][代码] [代码][代码]position: {[代码][代码] [代码][代码]left: (app.globalData.windowWidth / 2) - 20,[代码][代码] [代码][代码]top: (app.globalData.windowHeight - 40) / 2 - 38,[代码][代码] [代码][代码]width: 40,[代码][代码] [代码][代码]height: 40[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]{[代码][代码] [代码][代码]id: 1,[代码][代码] [代码][代码]iconPath: [代码][代码]'/images/positioning.png'[代码][代码],[代码][代码] [代码][代码]position: {[代码][代码] [代码][代码]left: 20,[代码][代码] [代码][代码]top: 20,[代码][代码] [代码][代码]width: 40,[代码][代码] [代码][代码]height: 40[代码][代码] [代码][代码]},[代码][代码] [代码][代码]clickable: [代码][代码]true[代码][代码] [代码][代码]}[代码][代码] [代码][代码]][代码][代码] [代码][代码]},[代码][代码] [代码][代码]staticData: {},[代码][代码] [代码][代码]onShow() {[代码][代码] [代码][代码]this[代码][代码].getLocation();[代码][代码] [代码][代码]},[代码][代码] [代码][代码]onReady: [代码][代码]function[代码][代码](e) {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]this[代码][代码].mapCtx = wx.createMapContext([代码][代码]'Map'[代码][代码]);[代码][代码] [代码][代码]const query = Bmob.Query([代码][代码]"customerInfo"[代码][代码]);[代码][代码] [代码][代码]query.find().then(res => {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]for[代码] [代码]([代码][代码]var[代码] [代码]i = 0; i < res.length; i++) {[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]markers: {[代码][代码] [代码][代码]id: i,[代码][代码] [代码][代码]iconPath: [代码][代码]"/images/buy.png"[代码][代码],[代码][代码] [代码][代码]latitude: res[i].latitude,[代码][代码] [代码][代码]longitude: res[i].longitude,[代码][代码] [代码][代码]width: 50,[代码][代码] [代码][代码]height: 50[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]console.log(that.data.markers)[代码][代码] [代码][代码]}[代码][代码] [代码][代码]});[代码][图片] 图片上是markers的值,但是为啥markers不显示
2018-11-17 - 求解,为什么地图不显示了,不知道自己哪儿修改出bug了
[代码]<[代码][代码]map[代码] [代码]id[代码][代码]=[代码][代码]"Map"[代码] [代码]longitude[代码][代码]=[代码][代码]"{{longitude}}"[代码] [代码]latitude[代码][代码]=[代码][代码]"{{latitude}}"[代码] [代码]scale[代码][代码]=[代码][代码]"14"[代码] [代码]class[代码][代码]=[代码][代码]'map'[代码] [代码]controls[代码][代码]=[代码][代码]"{{controls}}"[代码] [代码]bindcontroltap[代码][代码]=[代码][代码]"controltap"[代码][代码]></[代码][代码]map[代码][代码]>[代码][代码]var[代码] [代码]Bmob = require([代码][代码]'../../utils/bmob.js'[代码][代码]);[代码][代码]var[代码] [代码]app = getApp();[代码][代码]Page({[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]longitude: [代码][代码]""[代码][代码],[代码][代码] [代码][代码]latitude: [代码][代码]""[代码][代码],[代码][代码] [代码][代码]controls: [{[代码][代码] [代码][代码]iconPath: [代码][代码]'/images/address.png'[代码][代码],[代码][代码] [代码][代码]position: {[代码][代码] [代码][代码]left: (app.globalData.windowWidth / 2) - 20,[代码][代码] [代码][代码]top: (app.globalData.windowHeight - 40) / 2 - 38,[代码][代码] [代码][代码]width: 40,[代码][代码] [代码][代码]height: 40[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]{[代码][代码] [代码][代码]id: 1,[代码][代码] [代码][代码]iconPath: [代码][代码]'/images/positioning.png'[代码][代码],[代码][代码] [代码][代码]position: {[代码][代码] [代码][代码]left: 20,[代码][代码] [代码][代码]top: 20,[代码][代码] [代码][代码]width: 40,[代码][代码] [代码][代码]height: 40[代码][代码] [代码][代码]},[代码][代码] [代码][代码]clickable: [代码][代码]true[代码][代码] [代码][代码]}[代码][代码] [代码][代码]][代码][代码] [代码][代码]},[代码][代码] [代码][代码]staticData: {[代码][代码] [代码][代码]latitude: [代码][代码]""[代码][代码],[代码][代码] [代码][代码]longitude: [代码][代码]""[代码][代码] [代码][代码]},[代码] [代码] [代码][代码]onShow() {[代码][代码] [代码][代码]this[代码][代码].getLocation();[代码][代码] [代码][代码]},[代码][代码] [代码][代码]onReady: [代码][代码]function[代码][代码](e) {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]this[代码][代码].mapCtx = wx.createMapContext([代码][代码]'Map'[代码][代码])[代码][代码] [代码][代码]},[代码] [代码] [代码][代码]getLocation(e) {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]wx.getLocation({[代码][代码] [代码][代码]type: [代码][代码]'gcj02 '[代码][代码],[代码][代码] [代码][代码]success(res) {[代码][代码] [代码][代码]that.staticData.longitude = res.longitude,[代码][代码] [代码][代码]that.staticData.latitude = res.latitude[代码] [代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]controltap() {[代码][代码] [代码][代码]this[代码][代码].mapCtx.moveToLocation()[代码][代码] [代码][代码]},[代码] [代码] [代码][代码]onShareAppMessage() {[代码][代码] [代码][代码]return[代码] [代码]{[代码][代码] [代码][代码]title: [代码][代码]'萌宠交易平台'[代码][代码],[代码][代码] [代码][代码]path: [代码][代码]'/page/index/index'[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码] [代码]});[代码]
2018-11-16 - navigateBack无效果
navigateBack无效果,为什么?这是一个bug吗
2018-11-15 - 用开发者工具写代码,怎么撤销操作,回到上一步
求撤销操作快捷键是什么?
2018-11-13