摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>加载3dwindow</title> </head> <body onload="init3d()"> <div style="margin:0"> <button type="bu 阅读全文
posted @ 2018-11-14 16:06 VinceM 阅读(143) 评论(0) 推荐(0)
摘要: 如果文档比较长,那么当文档向下滚动时,背景图像也会随之滚动。当文档滚动到超过图像的位置时,图像就会消失。 您可以通过 background-attachment 属性防止这种滚动。通过这个属性,可以声明图像相对于可视区是固定的(fixed),因此不会受到滚动的影响: 背景重复 如果需要在页面上对背景 阅读全文
posted @ 2018-08-10 10:06 VinceM 阅读(96) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-07-26 09:21 VinceM 阅读(6) 评论(0) 推荐(0)
摘要: var DDB_User = Bmob.Object.createWithoutData("DDB_User", "b2fd2fe68f"); // var Task = Bmob.Object.extend("Task"); var myComment = Bmob.Object.extend(" 阅读全文
posted @ 2018-05-25 14:04 VinceM 阅读(877) 评论(0) 推荐(0)
摘要: var p = new Promise(function (resolve, reject) { }); p.then(() => { }) var p = new Promise(function (resolve, reject) { }); p.then(() => { }) 阅读全文
posted @ 2018-05-25 08:45 VinceM 阅读(122) 评论(0) 推荐(0)
摘要: 今天遇到大神,帮我处理同步异步的文题,原来我想在数据库查询完成之后再执行另一个筛选代码的,但是查询时异步操作,如果按照顺序写就是先筛选,再查询,不符合逻辑,所以借用了以下代码: var p = new Promise(function(resolve, reject){ //做一些异步操作,上面这些 阅读全文
posted @ 2018-05-23 14:58 VinceM 阅读(562) 评论(0) 推荐(0)
摘要: 在需要页面之间传递多个参数的时候,需要用&链接起来,上一页的正确跳转代码如下: var that = this; wx.navigateTo({ url: '../../pages/myListDetail/myListDetail?idx=' + that.data.currentTab + '& 阅读全文
posted @ 2018-05-22 13:46 VinceM 阅读(23303) 评论(1) 推荐(0)
摘要: 代码如下: var my_set = result.attributes.my_set; if (my_set == undefined) { my_set = { is_be_agree: e.detail.value } } else { my_set.is_be_agree = false } 阅读全文
posted @ 2018-05-18 20:15 VinceM 阅读(8300) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示