GithubHelp home page GithubHelp logo

js-high's Introduction

#跨页面传值 学习笔记总结

#这个3个例子

1、url的获取,字符串的截取操作

2、localStorage和sessionStorage的使用

3、原生cookie的封装,jquery.cookie.js插件的使用

#获取demo:

1、创建一个文件夹
2、cd  进入当前文件夹 。
    window => 在文件夹空白处 按住  Shift键 + 鼠标右键   => 此处打开终端窗口  可快速进入当前文件夹
3、git init   
4、git clone  ...

#跨页面传值有三种方式

方法一:
    1、通过URL传值

方法二:
    1、使用h5的localStorage或者sessionStorage存储对象类型

方法三:
    1、使用cookie保存
        1、原生cookie
        2、jQuerycookiejs插件
        3、使用cookie可用来跨页面传值 - 状态保持

js-high's People

Contributors

xieerduos avatar

Watchers

James Cloos avatar

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.