- 20个新手学习c++必会的程序 输出*三角形、杨辉三角等(附代码)
X_StarX
c++学习算法大学生开发语言数据结构
示例1:HelloWorld#includeusingnamespacestd;intmain(){coutusingnamespacestd;intmain(){inta=5;intb=10;intsum=a+b;coutusingnamespacestd;intfactorial(intn){if(nusingnamespacestd;voidprintFibonacci(intn){intt
- rsync exited with code 255.Load key “...“: invalid format Permission denied, please try again.
沧州刺史
后端服务器运维githubactionslinuxssh
在配置githubactions自动部署前端项目到服务器上时,登录服务器使用的是秘钥登录。出现报错:[general]GITHUB_WORKSPACE:/home/runner/work/clogin-frontend/clogin-frontend[SSH]Creating/home/runner/.sshdirin/home/runner/work/clogin-frontend/clogin
- 自学Python:计算斐波纳契数列
小强聊成长
斐波那契数列(Fibonaccisequence),又称黄金分割数列,因数学家莱昂纳多·斐波那契(LeonardodaFibonacci)以兔子繁殖为例子而引入,故又称为“兔子数列”,指的是这样一个数列:0、1、1、2、3、5、8、13、21、34、……在数学上,斐波那契数列以如下被以递推的方法定义:F(0)=0,F(1)=1,F(n)=F(n-1)+F(n-2)(n≥2,n∈N*)在现代物理、准
- 网络安全 L1 Introduction to Security
h08.14
网络安全web安全安全
Informationsecurity1.Theprocessofpreventinganddetectingunauthoriseduseofyourinformation.2.Thescienceofguardinginformationsystemsandassetsagainstmaliciousbehavioursofintelligentadversaries.3.Securityvs
- We are talking about 《WAR IS A LIE》
MichaelSure
图片发自App图片发自AppTodayIreadabookwhichiscalledWarisalie.ThisisabookwrittebyDavidSwanson,anAmericanwriterwhofightsagainstthewar.WarisawordalwaysrelatetotheUnitedStatesandDavidthinkhismotherlandisthebiggest
- IEEE投稿无法上传文件问题(An error has occurred.Please try again......)
LeeYLong
经验分享
投稿上传手稿出现:Anerrorhasoccurred.Pleasetryagain.Iftheproblempersists,pleasecontacttheSupportTeamformoreinformationandinstructions.TheSupportTeam`scontactinformationcanbeobtainedbyclickingthe‘Help’linkinthe
- 斐波纳契数列(f(n)=f(n-1)+f(n-2))问题
剑海风云
Algorithm算法数列
packageorg.nxt.algorithm.series;importjava.math.BigInteger;/***fibonacciseries*@authornanxiaotao**/publicclassFibonacciSeries{privatestaticBigInteger[][]matrix(BigInteger[][]arrLeft,BigInteger[][]arrR
- 1(新生、音乐、虔诚和勤奋)
二瘦不太傻
原文:Thouhastmademeendless,suchisthypleasure.Thisfrailvesselthouemptiestagainandagain,andfillestiteverwithfreshlife.Thislittlefluteofareedthouhastcarriedoverhillsanddales,andhastbreathedthroughitmelodie
- «有了你我又获重生 With you I'm born again»春花女生版第113章 耶的玉茶碗
情感倾诉广场慧心
春儿看到花儿因自己手中的这个玉茶碗而表情变得惊讶,难道是这个玉茶碗"惹得祸"吗?玉茶碗是父亲的最爱,可以说是"心肝宝贝",总是带在身上,从不离身,不知为何今天会把它留在此处,春儿知道这个玉茶碗是很神奇的,再热的茶水也不会烫手。刚才春儿在水房为花儿沾湿鲛绡时,无意中发现它的,他惊喜地取它过来特意是给花儿用一下,没想到花儿看到此物表情居然剧变,难道这里有什么自己不知道的故事吗?"花儿,我把茶水倒在这个
- 搜索算法之斐波那契搜索详细解读(附带Java代码解读)
南城花随雪。
算法分析算法数据结构排序算法
斐波那契搜索(FibonacciSearch)详细介绍1.基本概念斐波那契搜索是一种高效的查找算法,用于在已排序的数组中查找目标值。它使用斐波那契数列来确定中间点,避免了二分搜索中的中点计算问题。斐波那契数列是由F(n)=F(n-1)+F(n-2)定义的,初始值为F(0)=0和F(1)=1。2.工作原理斐波那契搜索的基本步骤如下:初始化:计算斐波那契数列中适合当前数组长度的最大值F(k),其中F(
- a as as big rat_What"s the meaning of "give a rat"s as..._考试资料网
weixin_39622084
aasasbigrat
单项选择题Justaseachweddingcreatespotentialbusinessfordivorcelawyers,soeachengagementgivesinsurersachancetodrumupbusiness.Futurespouses,saysAlanTuvinofTravelers,aninsurer,maywishtoprotectthemselvesagainsts
- 规律的生活才是王道
大方呀
规律的生活才是王道,指规律的正向生活习惯。例如,keep住阅读、写作、早睡早起阅读,故事型的牧羊人之旅、月亮与六便士中人物能给予你力量,我如何感受到阅读的影响;解答型的小学问、糟边往事,给予思考的火花。写作,不仅仅是记录生活,更是从过往的经历,againandagain汲取经验。把思考写下来,促进更进一步的thinking。规律的睡眠作息。省去费力令自己早睡的麻烦。闭眼睡眠时,大脑分泌血清洗干净整
- 浙大数据结构:03-树3 Tree Traversals Again
_Power_Y
数据结构浙大数据结构c++算法
这道题也不算难,我依然采用map来进行处理,代码依旧较短机翻1、条件准备我这里采用数组模拟栈,tt指向栈顶;map的键存结点值,后面数对存左右子树的结点值head存头节点的值#include#include#includeusingnamespacestd;intstk[100],tt=-1;map>m;inthead;主函数先是加快输入输出,然后输入结点数量,调用inordertraval生成这
- Back to Bodhimanda Again
Jessica1943
Ihaven'tbeenbacktotheBodhimandaforaroundayear,stillthesamefeelinglikehomeevendifferentlocation.#tonightwentoverthedocumentary"thegreatPilgrim"(玄奘大师)againwithBuddhistfriends.Chinaisreallyreallyluckytoh
- 笔试强训day04
ao_lang
笔试强训算法图论深度优先
Fibonacci数列#includeusingnamespacestd;intn;intmain(){cin>>n;inta=0,b=1,c=1;while(n>c){a=b;b=c;c=a+b;}cout#includeclassSolution{private:intn,m;intdx[4]={1,-1,0,0},dy[4]={0,0,1,-1};boolvis[110][110]{};bo
- 01 Shell Script概述
幽月静语
Shell运维编程运维
ShellScript概述一、什么是ShellShell就是一个解释器,它的作用就是遵循一定的语法将输入的指令或者命令加以解释并传给系统。类似于windows系统的cmd.exe。分类:图形shell(GUIshell)Windowsexplorelinux:xwindows,KDE,CDE命令行shell(CLIshell)bshbashksh常见的命令行ShellBourneAgainShel
- 如何练就美语思维
城市猎人查尔斯
中国人的英语常常会让老外莫名奇妙,常常会问你,“Canyouspeakagain?what’syourmean?what’syourpoint?”这正是不同文化思维方式上的差别。英文对问题的陈述是先描述结果再描述过程,而中文则是先描述过程最后描述结果。也就是说,英文按照重要程度来描述问题,而中文按照时间顺序描述问题。例如,中国人写简历:1980-1983-1990-1995-2002。而欧美人正好
- 斐波那契数列——C语言
木木ᶻ
c语言蓝桥杯算法
目录一、递归法二、for循环三、for循环+数组斐波那契数列(Fibonaccisequence),也称之为黄金分割数列,由意大利数学家列昂纳多・斐波那契(LeonardoFibonacci)提出。斐波那契数列指的是这样的一个数列:1、1、2、3、5、8、13、21、34、……,这个数列从第3项开始,每一项都等于前面两项之和。在数学上,斐波那契数列可以被递推的方法定义如下:F(1)=1F(2)=1
- 解决:Vmware workstation 17 输入密钥后You do not have permission to enter a license key.
。
编辑器
以下为个人尝试成功的方法:①按提示上的“Youdonothavepermissiontoenteralicensekey.Tryagainusingthesystemadministratoraccount.”,尝试使用系统管理员账号,按键盘上的windows键后搜索cmd,以管理员身份运行②逐步通过cd文件夹名进入vmware所在安装目录后,最后一次为cdx64③输入:mware-vmx.exe
- Welcome business guests
Isalpha
1.Vocabularypresentation介绍2.SentenceI'msorry,butcouldyourepeatthat?Couldyousayitagain,please?Sorry,whatwasthat?Whatdoyoumean?I'mnotsureIunderstand.It'sgreattoseeyouinperson.很高兴见到您本人。3.DialogueDialogue
- 【论文阅读】QUEEN: Query Unlearning against Model Extraction(2024)
Bosenya12
科研学习模型窃取论文阅读提取攻击模型安全
摘要Modelextractionattacks(模型提取攻击)currentlyposeanon-negligiblethreat(不可忽视的威胁)tothesecurity(安全性)andprivacy(隐私性)ofdeeplearningmodels.Byqueryingthemodelwithasmalldataset(通过小数据集查询模型)andusingthequeryresultsa
- 选择不来月经,对身体到底有没有伤害?
寒冬秀叶
‘Womendon’tneedtobleed’:whymanymoreofusaregivinguponperiodscontraception/ˌkɑːntrəˈsepʃn/n.避孕(法)词根词缀:contra-(against,阻止)相关词汇:conception(n.概念;怀孕)英文释义:methodsofpreventingpregnancymenstruation/ˌmenstruˈeɪ
- Fibonacci Number
GakkiLove
GettheKthnumberintheFibonacciSequence.(Kis0-indexed,the0thFibonaccinumberis0andthe1stFibonaccinumberis1).Examples0thfibonaccinumberis01stfibonaccinumberis12ndfibonaccinumberis13rdfibonaccinumberis26th
- HarmonyOS DevEcoStudio 运行远程模拟器 提示The HDC tool hasn‘t been installed. Download the toolchains agains
IT程序员的编程黑洞(鸽子王)
harmonyOS鸿蒙harmonyos华为DevEcoStudio
HarmonyOS鸿蒙运行远程模拟器的时候提示TheHDCtoolhasn’tbeeninstalled.Downloadthetoolchainsagain.提示:写完文章后,目录可以自动生成,如何生成可参考右边的帮助文档文章目录HarmonyOS鸿蒙运行远程模拟器的时候提示TheHDCtoolhasn'tbeeninstalled.Downloadthetoolchainsagain.前言一、
- Cesium笔记 加载kml文件 以线为例
Y青阳
cesium笔记前端
setKmlData(kmlUrl){letvm=this;//letkmlUrl=kmlUrl;letkmlDataPromise=Cesium.KmlDataSource.load(kmlUrl,{camera:vm.viewer.scene.camera,canvas:vm.viewer.scene.canvas,clampToGround:true,//默认贴地depthTestAgain
- 小丁的ScalersTalk第五轮新概念朗读持续力训练Day61-2019122
丁丁水天
1.练习材料Lesson73Therecord-holderChildrenwhoplaytruantfromschoolareunimaginative.Aquietday'sfishing,oreighthoursinacinemaseeingthesamefilmoverandoveragain,isusuallyasfarastheyget.Theyhaveallbeenputtosham
- 【鹅妈妈童谣】13.To market, to market
欣然小时光
日常生活中总少不了带孩子去超市逛逛,今天就为大家介绍一首关于去市场的鹅妈妈童谣《Tomarket,tomarket》。【童谣】Tomarket,tomarket,tobuyafatpig,Homeagain,homeagain,jiggety-jig.Tomarket,tomarket,tobuyafathog,Homeagain,homeagain,jiggety-jog.去市场,去市场,去买一
- Docker打包Python工程
Dockerdockerpython容器
文章目录Docker打包python项目1各个目录文件作用1.1Dockerfile示例1.2requirements.txt示例2创建镜像3运行镜像4保存镜像4.1删除镜像4.2加载打包好的tar包问题解决1.提示`Use'dockerscan'torunSnyktestsagainstimagestofindvulnerabilitiesandlearnhowtofixthem`2.Windo
- python-求和again(赛氪OJ)
闪云-微星
python算法
[题目描述]最近小理遇到了麻烦的问题,你能帮帮他吗?题目是这样的:计算SUM(n)=1+2+3+...+10^n。输入格式:输入包含多组数据,每组数据一行,包括一个整数n。当n=−1时输入终止。输出格式:对于每个n输出相应的和。样例输入12-1样例输出555050数据范围:对于100%的数据,保证1≤n≤100。来源/分类(难度系数:二星)高精度完整代码展示:#coding=utf-8n=[]wh
- Gambler
Alicesyuu
“Allmechanicalhabits,tastesandweaknessesfightagainstself-rememberinginman”~Gurdjieff「人裡面所有機械性的習慣、嗜好和軟弱,都在反對記得自己。」~葛吉夫图片发自App
- LeetCode[Math] - #66 Plus One
Cwind
javaLeetCode题解AlgorithmMath
原题链接:#66 Plus One
要求:
给定一个用数字数组表示的非负整数,如num1 = {1, 2, 3, 9}, num2 = {9, 9}等,给这个数加上1。
注意:
1. 数字的较高位存在数组的头上,即num1表示数字1239
2. 每一位(数组中的每个元素)的取值范围为0~9
难度:简单
分析:
题目比较简单,只须从数组
- JQuery中$.ajax()方法参数详解
AILIKES
JavaScriptjsonpjqueryAjaxjson
url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。
type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和 delete也可以使用,但仅部分浏览器支持。
timeout: 要求为Number类型的参数,设置请求超时时间(毫秒)。此设置将覆盖$.ajaxSetup()方法的全局
- JConsole & JVisualVM远程监视Webphere服务器JVM
Kai_Ge
JVisualVMJConsoleWebphere
JConsole是JDK里自带的一个工具,可以监测Java程序运行时所有对象的申请、释放等动作,将内存管理的所有信息进行统计、分析、可视化。我们可以根据这些信息判断程序是否有内存泄漏问题。
使用JConsole工具来分析WAS的JVM问题,需要进行相关的配置。
首先我们看WAS服务器端的配置.
1、登录was控制台https://10.4.119.18
- 自定义annotation
120153216
annotation
Java annotation 自定义注释@interface的用法 一、什么是注释
说起注释,得先提一提什么是元数据(metadata)。所谓元数据就是数据的数据。也就是说,元数据是描述数据的。就象数据表中的字段一样,每个字段描述了这个字段下的数据的含义。而J2SE5.0中提供的注释就是java源代码的元数据,也就是说注释是描述java源
- CentOS 5/6.X 使用 EPEL YUM源
2002wmj
centos
CentOS 6.X 安装使用EPEL YUM源1. 查看操作系统版本[root@node1 ~]# uname -a Linux node1.test.com 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux [root@node1 ~]#
- 在SQLSERVER中查找缺失和无用的索引SQL
357029540
SQL Server
--缺失的索引
SELECT avg_total_user_cost * avg_user_impact * ( user_scans + user_seeks ) AS PossibleImprovement ,
last_user_seek ,
 
- Spring3 MVC 笔记(二) —json+rest优化
7454103
Spring3 MVC
接上次的 spring mvc 注解的一些详细信息!
其实也是一些个人的学习笔记 呵呵!
- 替换“\”的时候报错Unexpected internal error near index 1 \ ^
adminjun
java“\替换”
发现还是有些东西没有刻子脑子里,,过段时间就没什么概念了,所以贴出来...以免再忘...
在拆分字符串时遇到通过 \ 来拆分,可是用所以想通过转义 \\ 来拆分的时候会报异常
public class Main {
/*
- POJ 1035 Spell checker(哈希表)
aijuans
暴力求解--哈希表
/*
题意:输入字典,然后输入单词,判断字典中是否出现过该单词,或者是否进行删除、添加、替换操作,如果是,则输出对应的字典中的单词
要求按照输入时候的排名输出
题解:建立两个哈希表。一个存储字典和输入字典中单词的排名,一个进行最后输出的判重
*/
#include <iostream>
//#define
using namespace std;
const int HASH =
- 通过原型实现javascript Array的去重、最大值和最小值
ayaoxinchao
JavaScriptarrayprototype
用原型函数(prototype)可以定义一些很方便的自定义函数,实现各种自定义功能。本次主要是实现了Array的去重、获取最大值和最小值。
实现代码如下:
<script type="text/javascript">
Array.prototype.unique = function() {
var a = {};
var le
- UIWebView实现https双向认证请求
bewithme
UIWebViewhttpsObjective-C
什么是HTTPS双向认证我已在先前的博文 ASIHTTPRequest实现https双向认证请求
中有讲述,不理解的读者可以先复习一下。本文是用UIWebView来实现对需要客户端证书验证的服务请求,网上有些文章中有涉及到此内容,但都只言片语,没有讲完全,更没有完整的代码,让人困扰不已。但是此知
- NoSQL数据库之Redis数据库管理(Redis高级应用之事务处理、持久化操作、pub_sub、虚拟内存)
bijian1013
redis数据库NoSQL
3.事务处理
Redis对事务的支持目前不比较简单。Redis只能保证一个client发起的事务中的命令可以连续的执行,而中间不会插入其他client的命令。当一个client在一个连接中发出multi命令时,这个连接会进入一个事务上下文,该连接后续的命令不会立即执行,而是先放到一个队列中,当执行exec命令时,redis会顺序的执行队列中
- 各数据库分页sql备忘
bingyingao
oraclesql分页
ORACLE
下面这个效率很低
SELECT * FROM ( SELECT A.*, ROWNUM RN FROM (SELECT * FROM IPAY_RCD_FS_RETURN order by id desc) A ) WHERE RN <20;
下面这个效率很高
SELECT A.*, ROWNUM RN FROM (SELECT * FROM IPAY_RCD_
- 【Scala七】Scala核心一:函数
bit1129
scala
1. 如果函数体只有一行代码,则可以不用写{},比如
def print(x: Int) = println(x)
一行上的多条语句用分号隔开,则只有第一句属于方法体,例如
def printWithValue(x: Int) : String= println(x); "ABC"
上面的代码报错,因为,printWithValue的方法
- 了解GHC的factorial编译过程
bookjovi
haskell
GHC相对其他主流语言的编译器或解释器还是比较复杂的,一部分原因是haskell本身的设计就不易于实现compiler,如lazy特性,static typed,类型推导等。
关于GHC的内部实现有篇文章说的挺好,这里,文中在RTS一节中详细说了haskell的concurrent实现,里面提到了green thread,如果熟悉Go语言的话就会发现,ghc的concurrent实现和Go有点类
- Java-Collections Framework学习与总结-LinkedHashMap
BrokenDreams
LinkedHashMap
前面总结了java.util.HashMap,了解了其内部由散列表实现,每个桶内是一个单向链表。那有没有双向链表的实现呢?双向链表的实现会具备什么特性呢?来看一下HashMap的一个子类——java.util.LinkedHashMap。
- 读《研磨设计模式》-代码笔记-抽象工厂模式-Abstract Factory
bylijinnan
abstract
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
package design.pattern;
/*
* Abstract Factory Pattern
* 抽象工厂模式的目的是:
* 通过在抽象工厂里面定义一组产品接口,方便地切换“产品簇”
* 这些接口是相关或者相依赖的
- 压暗面部高光
cherishLC
PS
方法一、压暗高光&重新着色
当皮肤很油又使用闪光灯时,很容易在面部形成高光区域。
下面讲一下我今天处理高光区域的心得:
皮肤可以分为纹理和色彩两个属性。其中纹理主要由亮度通道(Lab模式的L通道)决定,色彩则由a、b通道确定。
处理思路为在保持高光区域纹理的情况下,对高光区域着色。具体步骤为:降低高光区域的整体的亮度,再进行着色。
如果想简化步骤,可以只进行着色(参看下面的步骤1
- Java VisualVM监控远程JVM
crabdave
visualvm
Java VisualVM监控远程JVM
JDK1.6开始自带的VisualVM就是不错的监控工具.
这个工具就在JAVA_HOME\bin\目录下的jvisualvm.exe, 双击这个文件就能看到界面
通过JMX连接远程机器, 需要经过下面的配置:
1. 修改远程机器JDK配置文件 (我这里远程机器是linux).
 
- Saiku去掉登录模块
daizj
saiku登录olapBI
1、修改applicationContext-saiku-webapp.xml
<security:intercept-url pattern="/rest/**" access="IS_AUTHENTICATED_ANONYMOUSLY" />
<security:intercept-url pattern=&qu
- 浅析 Flex中的Focus
dsjt
htmlFlexFlash
关键字:focus、 setFocus、 IFocusManager、KeyboardEvent
焦点、设置焦点、获得焦点、键盘事件
一、无焦点的困扰——组件监听不到键盘事件
原因:只有获得焦点的组件(确切说是InteractiveObject)才能监听到键盘事件的目标阶段;键盘事件(flash.events.KeyboardEvent)参与冒泡阶段,所以焦点组件的父项(以及它爸
- Yii全局函数使用
dcj3sjt126com
yii
由于YII致力于完美的整合第三方库,它并没有定义任何全局函数。yii中的每一个应用都需要全类别和对象范围。例如,Yii::app()->user;Yii::app()->params['name'];等等。我们可以自行设定全局函数,使得代码看起来更加简洁易用。(原文地址)
我们可以保存在globals.php在protected目录下。然后,在入口脚本index.php的,我们包括在
- 设计模式之单例模式二(解决无序写入的问题)
come_for_dream
单例模式volatile乱序执行双重检验锁
在上篇文章中我们使用了双重检验锁的方式避免懒汉式单例模式下由于多线程造成的实例被多次创建的问题,但是因为由于JVM为了使得处理器内部的运算单元能充分利用,处理器可能会对输入代码进行乱序执行(Out Of Order Execute)优化,处理器会在计算之后将乱序执行的结果进行重组,保证该
- 程序员从初级到高级的蜕变
gcq511120594
框架工作PHPandroidhtml5
软件开发是一个奇怪的行业,市场远远供不应求。这是一个已经存在多年的问题,而且随着时间的流逝,愈演愈烈。
我们严重缺乏能够满足需求的人才。这个行业相当年轻。大多数软件项目是失败的。几乎所有的项目都会超出预算。我们解决问题的最佳指导方针可以归结为——“用一些通用方法去解决问题,当然这些方法常常不管用,于是,唯一能做的就是不断地尝试,逐个看看是否奏效”。
现在我们把淫浸代码时间超过3年的开发人员称为
- Reverse Linked List
hcx2013
list
Reverse a singly linked list.
/**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode(int x) { val = x; }
* }
*/
p
- Spring4.1新特性——数据库集成测试
jinnianshilongnian
spring 4.1
目录
Spring4.1新特性——综述
Spring4.1新特性——Spring核心部分及其他
Spring4.1新特性——Spring缓存框架增强
Spring4.1新特性——异步调用和事件机制的异常处理
Spring4.1新特性——数据库集成测试脚本初始化
Spring4.1新特性——Spring MVC增强
Spring4.1新特性——页面自动化测试框架Spring MVC T
- C# Ajax上传图片同时生成微缩图(附Demo)
liyonghui160com
1.Ajax无刷新上传图片,详情请阅我的这篇文章。(jquery + c# ashx)
2.C#位图处理 System.Drawing。
3.最新demo支持IE7,IE8,Fir
- Java list三种遍历方法性能比较
pda158
java
从c/c++语言转向java开发,学习java语言list遍历的三种方法,顺便测试各种遍历方法的性能,测试方法为在ArrayList中插入1千万条记录,然后遍历ArrayList,发现了一个奇怪的现象,测试代码例如以下:
package com.hisense.tiger.list;
import java.util.ArrayList;
import java.util.Iterator;
- 300个涵盖IT各方面的免费资源(上)——商业与市场篇
shoothao
seo商业与市场IT资源免费资源
A.网站模板+logo+服务器主机+发票生成
HTML5 UP:响应式的HTML5和CSS3网站模板。
Bootswatch:免费的Bootstrap主题。
Templated:收集了845个免费的CSS和HTML5网站模板。
Wordpress.org|Wordpress.com:可免费创建你的新网站。
Strikingly:关注领域中免费无限的移动优
- localStorage、sessionStorage
uule
localStorage
W3School 例子
HTML5 提供了两种在客户端存储数据的新方法:
localStorage - 没有时间限制的数据存储
sessionStorage - 针对一个 session 的数据存储
之前,这些都是由 cookie 完成的。但是 cookie 不适合大量数据的存储,因为它们由每个对服务器的请求来传递,这使得 cookie 速度很慢而且效率也不