Git Product home page Git Product logo

issue's Introduction

issue's People

Contributors

sxy15 avatar

Stargazers

 avatar

Watchers

 avatar

issue's Issues

rust 学习备注

  1. 在 Rust 中哪些类型默认是做移动所有权操作,哪些类型默认是做复制所有权操作呢?
默认做复制所有权的操作的有 7 种
  所有的整数类型,比如 u32;
  布尔类型 bool;
  浮点数类型,比如 f32、f64;
  字符类型 char;
  由以上类型组成的元组类型 tuple,如(i32, i32, char);
  由以上类型组成的数组类型 array,如 [9; 100];
  不可变引用类型 &;

其他类型默认都是做移动所有权的操作。

npm link 的另一个选择 Yalc

Install

npm i yalc -g

发布本地包

yalc publish

添加/更新/删除本地包

yalc add <package-name>
yalc update <package-name>
yalc remove <package-name>

chrome 本地mock

chrome 原生支持了本地替换网络资源能力。目前可以做到拦截接口、html、css、js等。

overrides

iframe -> micro-app 微前端

iframe的优势提供了浏览器原生的硬隔离方案,不论是样式隔离、js 隔离这类问题统统都能被完美解决。缺点也在于它的隔离性无法被突破,导致应用间上下文无法被共享,随之带来的开发体验、产品体验的问题。

  1. url 不同步。浏览器刷新 iframe url 状态丢失、后退前进按钮无法使用
  2. UI 不同步,DOM 结构不共享
  3. 全局上下文完全隔离,内存变量不共享

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.