EasyMock 这是一个免费的在线Mock文档库,没有money,只好用免费的。然后注册好了私信群里加入项目。
{
// 请求成功
"status": "ok",
}
autoFixOnSave: boolean | string[]
)驼峰命名
规则。单引号
。;
。统一缩写,这里列出来常见等可用缩写内容:
序号 | 缩写 | 表示 | 描述 |
---|---|---|---|
1 | v | value | 一些参数的值统一采用缩写v |
2 | t | type | type的简写 |
3 | rq | request | 请求 |
4 | rs | result/respons | 返回值 |
使用这个方法会报错,目前还没空去解决它。
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
错误信息
A cookie associated with a cross-site resource at http://sohu.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
MobX 为复杂项目中状态管理提供了一种简单高效的机制;Taro 提供了 @tarojs/mobx 来让开发人员在使用 MobX 的过程中获得更加良好的开发体验。 教程
安装模块
$ yarn add mobx@4.8.0 @tarojs/mobx @tarojs/mobx-h5 @tarojs/mobx-rn
# 或者使用 npm
$ npm install --save mobx@4.8.0 @tarojs/mobx @tarojs/mobx-h5 @tarojs/mobx-rn
// src/store/counter.js
import { observable } from 'mobx'
const counterStore = observable({
counter: 0,
counterStore() {
this.counter++
},
increment() {
this.counter++
},
decrement() {
this.counter--
},
incrementAsync() {
setTimeout(() => {
this.counter++
}, 1000)
}
})
export default counterStore
Taro.galbalData(key,value)
单独传key情况下视为获取全局变量方法,传了key、data的情况下视为设置全局变量,key、value均不传视为清理全局变量方法。
Taro.rq({url:xxx,method:'POST',data:{}}).then(row=>console.log(row))
method可以不传,默认情况下视为GET
方法,支持promise
Taro.storages(name,data)
单独传key情况下视为getStorage
方法,传了key、data的情况下视为setStorage
,不传key、data的情况下视为clearStorageSync
,支持promise
。
// 基本路由跳转 path是目标地址,只需要index/index,无需填写全部路径。data为传值的内容
Taro.R.goto(path, data)
// 重置路由跳转,无历史记录,不可返回。
Taro.R.reto(path, data)
// 返回上一页,上几页。默认num不传值情况为返回上一页。
Taro.R.backto(num)
todo:丹阳
todo:幻城
往app.sass中添加内容,可以参照全栈之巅教程中的第三章前面几节内容,然后好好百度,抓紧时间开发!
部署教程
Article //文章模型
Auth //邮箱验证模型
Category //分类模型
Cloud //云盘保存账户模型
CloudResouse//云资源模型
Configure //系统设置模型
Menber //会员模型
MenberDetile//会员基本资料模型
Navigation //导航数据模型
Swiper //跑马灯数据模型
UserLocked //会员解锁数据模型
UserLove //会员收藏模型
UserVip //超级会员模型
如果你发现了一个安全漏洞或缺陷,请发送邮件到 3206107745@qq.com,所有的安全漏洞都将及时得到解决。
EngineChina 提供个人非商业用途免费使用,商业需授权。
版权所有Copyright © 2020 EngineChina(GitHub.Gold) (http://GitHub.Gold)
All rights reserved。
更多细节参阅 LICENSE.txt
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。