上一页 1 2 3 4 5 6 7 8 ··· 17 下一页
摘要: // 类的定义 class User{ constructor(){ this.name = 'xyz' this.age = 18 } } // 实例化对象 var u = new User('') console.log(u) 阅读全文
posted @ 2021-04-05 22:39 程序员陈师兄cxycsx 阅读(196) 评论(0) 推荐(0)
摘要: 项目结构 Client │ ├─components │ │ └─goods │ └─pages │ └─index └─Cloud └─getClassComents └─node_modules 1.新建云函数,安装第三方模块 npm install request-promise 2.云函数 阅读全文
posted @ 2021-04-05 21:48 程序员陈师兄cxycsx 阅读(147) 评论(0) 推荐(0)
摘要: // index.wxml <view bindtap="upLoadFile"> 文件上传 </view> // index.js // 文件上传 upLoadFile(res){ // 选择文件 wx.chooseImage({ count: 0, success: (res) => { // 阅读全文
posted @ 2021-04-05 20:38 程序员陈师兄cxycsx 阅读(142) 评论(0) 推荐(0)
摘要: // index.wxml <form bindsubmit="onSubmit"> <input type="text" placeholder="请输入账号" name="username"/> <input type="text" placeholder="请输入密码" name="passw 阅读全文
posted @ 2021-04-05 20:23 程序员陈师兄cxycsx 阅读(446) 评论(0) 推荐(0)
摘要: 小程序端 app.js // 云环境初始化 wx.cloud.init({ env: "xylz-9nirz", traceUser: true }) index.js // 获取数据库数据 const db = wx.cloud.database(); db.collection('article 阅读全文
posted @ 2021-04-05 20:11 程序员陈师兄cxycsx 阅读(295) 评论(0) 推荐(0)
摘要: 示例代码如下 wx.request({ url: '', data: {}, method: "GET", success: function(res){ console.log(res) }, fail: function(err){ console.log(err) } }) 阅读全文
posted @ 2021-04-05 18:10 程序员陈师兄cxycsx 阅读(370) 评论(0) 推荐(0)
摘要: 微信小程序 1.目录结构 app.js │ app.json │ app.wxss │ project.config.json │ sitemap.json │ ├─components │ └─goods │ goods.js │ goods.json │ goods.wxml │ goods.w 阅读全文
posted @ 2021-04-05 17:57 程序员陈师兄cxycsx 阅读(87) 评论(0) 推荐(0)
摘要: 示例代码如下: 1.分支结构 int score = 90; if(score >= 90){ System.out.println("good"); } if(score >= 90){ System.out.println("good"); }else{ System.out.println(" 阅读全文
posted @ 2021-04-04 22:06 程序员陈师兄cxycsx 阅读(39) 评论(0) 推荐(0)
摘要: 示例代码如下: int a = 10; int b = 5; int max = a > b ? a : b; System.out.println(max); 阅读全文
posted @ 2021-04-04 21:40 程序员陈师兄cxycsx 阅读(255) 评论(0) 推荐(0)
摘要: 1.天气:https://tianqiapi.com/ 阅读全文
posted @ 2021-04-04 20:45 程序员陈师兄cxycsx 阅读(36) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 17 下一页