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 阅读全文
posted @ 2022-04-28 14:01 徐同保 阅读(28) 评论(0) 推荐(0) 编辑
摘要:justify-content 用于设置或检索弹性盒子元素在主轴(横轴)方向上的对齐方式。 https://www.runoob.com/cssref/css3-pr-justify-content.html?_t_t_t=0.9588430565985012 align-items 属性定义fle 阅读全文
posted @ 2022-04-26 16:05 徐同保 阅读(25) 评论(0) 推荐(0) 编辑
摘要:href字段为转码成base64格式的css文件 ,企业微信会把这个样式添加到iframe中 import { Base64 } from 'js-base64' new WwLogin({ id: 'm-wx-qrcode', appid: appId, agentid: agentId, red 阅读全文
posted @ 2022-04-22 17:24 徐同保 阅读(53) 评论(0) 推荐(0) 编辑
摘要://千分符 const formatNum = (num) => { if (num null) { return 0 } let value = num + ''; value = value.replace(/,/g, ""); if (/^[1-9]\d*$/.test(value)) { v 阅读全文
posted @ 2022-04-21 16:13 徐同保 阅读(7) 评论(0) 推荐(0) 编辑
摘要:https://element.eleme.cn/#/zh-CN/component/quickstart yarn add babel-plugin-component babel.config.js: module.exports = { presets: ['@vue/cli-plugin-b 阅读全文
posted @ 2022-04-15 16:10 徐同保 阅读(7) 评论(0) 推荐(0) 编辑
摘要://防抖 const debounce = (fn, delay) => { let timer; return function () { if (timer) { clearTimeout(timer); } timer = setTimeout(() => { fn(); }, delay); 阅读全文
posted @ 2022-04-15 10:53 徐同保 阅读(7) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2022-04-12 12:10 徐同保 阅读(33) 评论(0) 推荐(0) 编辑
摘要:yarn config set sharp_binary_host "https://npmmirror.com/mirrors/sharp" yarn config set sharp_libvips_binary_host "https://npmmirror.com/mirrors/sharp 阅读全文
posted @ 2022-04-08 18:46 徐同保 阅读(4) 评论(0) 推荐(0) 编辑
摘要:https://www.npmjs.com/package/react-devtools 安装包: yarn global add react-devtools 通过命令行启动: 可以直接修改app的样式,类似于在chrome中: 参考链接: https://chat.xutongbao.top/ 阅读全文
posted @ 2022-04-07 16:58 徐同保 阅读(18) 评论(0) 推荐(0) 编辑
摘要:error C:\Users\xu\AppData\Local\Yarn\Data\global\node_modules\electron: Command failed. 解决方案: yarn config set electron_mirror https://npm.taobao.org/m 阅读全文
posted @ 2022-04-07 16:32 徐同保 阅读(27) 评论(0) 推荐(0) 编辑
摘要:使用React Native Debugger 调试过程中Network无法抓取网络请求。 /** * Set up XMLHttpRequest. The native XMLHttpRequest in Chrome dev tools is CORS * aware and won't let 阅读全文
posted @ 2022-04-07 11:34 徐同保 阅读(44) 评论(0) 推荐(0) 编辑
摘要:package.json: { "name": "m-app2", "version": "1.0.0", "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "cross-env REACT_APP_MODE=test ex 阅读全文
posted @ 2022-04-07 11:11 徐同保 阅读(25) 评论(0) 推荐(0) 编辑
摘要:https://www.npmjs.com/package/react-native-root-toast import axios from 'axios' import { baseURL } from './config' import { Alert } from 'react-native 阅读全文
posted @ 2022-04-06 17:54 徐同保 阅读(17) 评论(0) 推荐(0) 编辑
摘要:https://reactnativeelements.com/ 装包: yarn add @rneui/themed @rneui/base yarn add react-native-safe-area-context 按钮、加载中进度条 ,分割线: import React, { useSta 阅读全文
posted @ 2022-04-06 17:38 徐同保 阅读(12) 评论(0) 推荐(0) 编辑
摘要:Icon.js: import { createIconSet } from 'react-native-vector-icons' import fontFile from '../../static/fonts/iconfont.ttf' import iconfontJson from '.. 阅读全文
posted @ 2022-04-06 14:35 徐同保 阅读(16) 评论(0) 推荐(0) 编辑
摘要:参考链接: https://www.npmjs.com/package/react-native-vector-icons#windows-via-react-native-windows https://oblador.github.io/react-native-vector-icons/ im 阅读全文
posted @ 2022-04-06 11:48 徐同保 阅读(3) 评论(0) 推荐(0) 编辑
摘要:import React, { useState, useRef, useEffect } from 'react' import { View, TextInput, Text, Button } from 'react-native' import axios from 'axios' impo 阅读全文
posted @ 2022-04-02 15:17 徐同保 阅读(10) 评论(0) 推荐(0) 编辑
摘要:get请求: import React, { useState, useRef, useEffect } from 'react' import { View, TextInput, Text, Button } from 'react-native' import style from './st 阅读全文
posted @ 2022-04-02 15:12 徐同保 阅读(5) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示