04 2022 档案
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
摘要:justify-content 用于设置或检索弹性盒子元素在主轴(横轴)方向上的对齐方式。 https://www.runoob.com/cssref/css3-pr-justify-content.html?_t_t_t=0.9588430565985012 align-items 属性定义fle
阅读全文
摘要:href字段为转码成base64格式的css文件 ,企业微信会把这个样式添加到iframe中 import { Base64 } from 'js-base64' new WwLogin({ id: 'm-wx-qrcode', appid: appId, agentid: agentId, red
阅读全文
摘要://千分符 const formatNum = (num) => { if (num null) { return 0 } let value = num + ''; value = value.replace(/,/g, ""); if (/^[1-9]\d*$/.test(value)) { v
阅读全文
摘要:https://element.eleme.cn/#/zh-CN/component/quickstart yarn add babel-plugin-component babel.config.js: module.exports = { presets: ['@vue/cli-plugin-b
阅读全文
摘要://防抖 const debounce = (fn, delay) => { let timer; return function () { if (timer) { clearTimeout(timer); } timer = setTimeout(() => { fn(); }, delay);
阅读全文
摘要:yarn global add expo-cli expo -V expo init m-app3 expo login https://expo.dev/ expo publish 手机下载expo go app,登录账号,也可以看到这样项目,还可以预览这个项目 yarn global add e
阅读全文
摘要:yarn config set sharp_binary_host "https://npmmirror.com/mirrors/sharp" yarn config set sharp_libvips_binary_host "https://npmmirror.com/mirrors/sharp
阅读全文
摘要:https://www.npmjs.com/package/react-devtools 安装包: yarn global add react-devtools 通过命令行启动: 可以直接修改app的样式,类似于在chrome中: 参考链接: https://chat.xutongbao.top/
阅读全文
摘要:error C:\Users\xu\AppData\Local\Yarn\Data\global\node_modules\electron: Command failed. 解决方案: yarn config set electron_mirror https://npm.taobao.org/m
阅读全文
摘要:使用React Native Debugger 调试过程中Network无法抓取网络请求。 /** * Set up XMLHttpRequest. The native XMLHttpRequest in Chrome dev tools is CORS * aware and won't let
阅读全文
摘要:package.json: { "name": "m-app2", "version": "1.0.0", "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "cross-env REACT_APP_MODE=test ex
阅读全文
摘要:https://www.npmjs.com/package/react-native-root-toast import axios from 'axios' import { baseURL } from './config' import { Alert } from 'react-native
阅读全文
摘要:https://reactnativeelements.com/ 装包: yarn add @rneui/themed @rneui/base yarn add react-native-safe-area-context 按钮、加载中进度条 ,分割线: import React, { useSta
阅读全文
摘要:Icon.js: import { createIconSet } from 'react-native-vector-icons' import fontFile from '../../static/fonts/iconfont.ttf' import iconfontJson from '..
阅读全文
摘要:参考链接: https://www.npmjs.com/package/react-native-vector-icons#windows-via-react-native-windows https://oblador.github.io/react-native-vector-icons/ im
阅读全文
摘要:import React, { useState, useRef, useEffect } from 'react' import { View, TextInput, Text, Button } from 'react-native' import axios from 'axios' impo
阅读全文
摘要:get请求: import React, { useState, useRef, useEffect } from 'react' import { View, TextInput, Text, Button } from 'react-native' import style from './st
阅读全文