摘要: import React, { Component, Fragment } from 'react' import { Button, Modal, Form, message, Upload } from 'antd' const FormItem = Form.Item export defau 阅读全文
posted @ 2020-12-24 16:58 日升月恒 阅读(1356) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>发布订阅模式</t 阅读全文
posted @ 2020-12-23 13:51 日升月恒 阅读(157) 评论(0) 推荐(0) 编辑
摘要: /** * 文件来源:https://www.codeprj.com/blog/9c3f8e1.html */ const { react } = require("babel-types"); // 1. 非框架搭建的页面 const windowHeight = window.innerHeig 阅读全文
posted @ 2020-12-23 11:42 日升月恒 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 新建文件夹behavior,新建文件resList.js // resList.js const app = getApp() module.exports = Behavior({ behaviors: [], //引入其它的 behavior properties: {}, //properti 阅读全文
posted @ 2020-12-23 11:22 日升月恒 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 文件来源:https://developers.weixin.qq.com/community/develop/article/doc/0004686e3c8980b53469f176e51413 在小程序中引入 MobX 在小程序项目中,可以通过 npm 的方式引入 MobX 。 npm init 阅读全文
posted @ 2020-12-23 10:53 日升月恒 阅读(1043) 评论(0) 推荐(0) 编辑
摘要: TextArea与Input.jsx import React, { Component, useState, useEffect } from 'react' import { Modal, Input } from 'antd' const { TextArea } = Input; expor 阅读全文
posted @ 2020-12-22 16:41 日升月恒 阅读(458) 评论(0) 推荐(0) 编辑
摘要: import React, { Component, useState } from 'react' import { Checkbox, Radio, Select, Modal } from 'antd' // https://ant.design/components/overview-cn/ 阅读全文
posted @ 2020-12-22 16:39 日升月恒 阅读(161) 评论(0) 推荐(0) 编辑
摘要: //创建cookie export function setCookie(c_name, value, expiredays) { var exdate = new Date(); exdate.setDate(exdate.getDate() + expiredays); document.coo 阅读全文
posted @ 2020-12-22 16:32 日升月恒 阅读(77) 评论(0) 推荐(0) 编辑
摘要: const { delete } = require("request"); /** * 数组循环:forEach / map / for of */ // foreach适用于只是进行集合或数组遍历,for则在较复杂的循环中效率更高。 // foreach不能对数组或集合进行修改(添加删除操作), 阅读全文
posted @ 2020-12-17 15:47 日升月恒 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 1、安装cross-env (cross-env能跨平台地设置及使用环境变量)cnpm/npm i cross-env -D 2、新建模板 红色的为相关文件 3、配置各个文件 (1)config下面的index.js 'use strict' // Template version: 1.3.1 / 阅读全文
posted @ 2020-11-23 11:43 日升月恒 阅读(955) 评论(0) 推荐(0) 编辑