- openssl+keepalived安装部署
_小亦_
项目部署keepalivedopenssl
文章目录OpenSSL安装下载地址编译安装修改系统配置版本Keepalived安装下载地址安装遇到问题安装完成配置文件keepalived运行检查运行状态查看系统日志修改服务service重新加载systemd检查配置文件语法错误OpenSSL安装下载地址考虑到后面设备可能没法连接到外网,所以采用安装包的方式进行部署,下载地址:https://www.openssl.org/source/old/
- 猿创征文|【FreeSwitch开发实践】使用sipp对FreeSwitch进行压力测试
一马途追
FreeSwitch开发实践sipp压力测试FreeSwitch压测
✨博客主页:小小马车夫的主页✨所属专栏:FreeSwitch开发实践✨专栏介绍:主要介绍博主在实际项目中使用FreeSwitch开发外呼类项目的一些经验心得,主要涉及FreeSwitch的基本安装编译、基本配置、ESL、WSS、录音、自定义模块、mediabug、语音播放、MRCP及对接AI机器人等内容。内容在持续更新中,如果感兴趣可以对专栏进行订阅~文章目录前言1、sipp编译安装2、sipp命
- centos下安装python3
i0208
centospython
Centos7默认自带了Python2.7版本,但是因为项目需要使用Python3.x你可以按照此文的三个方法进行安装.注:本文示例安装版本为Python3.5,一、Python源代码编译安装安装必要工具yum-utils,它的功能是管理repository及扩展包的工具(主要是针对repository)$sudoyuminstallyum-utils使用yum-builddep为Python3构
- ubuntu opencv 安装
科学的发展-只不过是读大自然写的代码
opencv基础ubuntuopencvlinux
1.ubuntuopencv安装在Ubuntu系统中安装OpenCV,可以通过多种方式进行,以下是一种常用的安装方法,包括从源代码编译安装。请注意,安装步骤可能会因OpenCV的版本和Ubuntu系统的具体版本而略有不同。一、安装准备更新系统(确保你的Ubuntu系统是最新的):sudoaptupdatesudoaptupgrade安装必要的依赖项:sudoaptinstallbuild-esse
- 笔记:Centos Jdk Nginx 安装包安装命令
贰十六
笔记javanginx
#官方网址#Nginx官网http://nginx.org/#推荐:下载地址http://nginx.org/download/nginx-1.20.2.tar.gz#安装Nginx#进入到usr中的src,把刚才下载的安装包拉进去cd/usr/src/#解压安装包tarzxvfnginx-1.6.2.tar.gz#进入安装包目录cdnginx-1.6.2#编译安装./configure--wit
- ubuntu编译安装cmake (亲测有用)
monster justin
ubuntulinux运维
以3.26.0为例一、下载安装压缩包这是下载的官网:DownloadCMakewgethttps://github.com/Kitware/CMake/releases/download/v3.26.0-rc5/cmake-3.26.0-rc5.tar.gz这样就下载好安装包了,下面解压:tarxzvfcmake-3.26.0-rc5.tar.gz二、下面编译安装在编译之前必须先安装好openss
- kafka php 教程,php 使用kafka
weixin_39713841
kafkaphp教程
准备工作gitclonehttps://github.com/edenhill/librdkafka.git./configuremakesudomakeinstall$gitclonehttps://github.com/arnaud-lb/php-rdkafka.git#生成configure文件$/Users/shiyibo/LNMP/php/bin/phpize#编译安装$./config
- Linux学习-模拟容器网络
丢爸
Linuxlinux学习
注:在Rocky8.6中使用brctl命令需安装需要下载源码编译安装,下载地址模拟容器间网络通信处在不同namespace的容器网络可以通过vethpair与bridge相连的方式来相互打通#添加虚拟网桥[root@es1~]#brctladdbrbr0[root@es1~]#iplinksetbr0up#创建ns0命名空间,添加IP,并将接口连接到虚拟网桥上[root@es1~]#ipnetns
- windows系统下配置Mamba环境
ls077
windows
最近在学习AI知识,试图在安装最近爆火的mamba模型时遇到困难。参考网上各位达人,经过努力,终于在win11系统anaconda中成功编译安装了mamba包。我用的是visualstudio20191.在windows下构建Mamba使用环境:condacreate-nmambapython=3.10condaactivatemamba注:Mamba需要triton,然而triton没有wind
- redis linux 免编译,【Linux】Redis编译安装
weixin_39680609
redislinux免编译
一、编译安装1、下载官网源码wgethttp://download.redis.io/releases/redis-2.8.3.tar2、解压源码包并安装tarxzfredis-2.8.3.tar.gzcdredis-2.8.3makemake之后,会出现一句提示:Hint:Torun'maketest'isagoodidea;)建议运行一下maketest此时会出现一个报错:Youneed'tc
- python 写入mysql
C11611
technologypython
开发环境及工具:macjupyter-notebookimporttushareastsimportmatplotlib.pyplotaspltimportpandasaspdimportpymysql.cursorsimporttimeimportpymysqlimportnumpyasnpdefgetstockdata(stockid,starttime,endtime):df=ts.get_
- docker pull msyql5.6 并使用
开花沼泽.
dockeradb容器
dockerpullmsyql:5.6mkdir-p/root/mysql/mysqlconfvim/root/mysql/mysqlconf/my.cnf[mysqld]skip-host-cacheskip-name-resolvedatadir=/var/lib/mysqlinit_connect='SETcollation_connection=utf8_general_ci'init_c
- ubuntu编译安装python_Ubuntu16 编译安装Python3.6
weixin_39623671
一、下载替换Ubuntu16的阿里源,参考官方配置apt-getupate#安装必要组件apt-getinstallopensslhtopiftoplibssl-devzlib1g-devmakegccwgetpython3-pipwgethttps://www.python.org/ftp/python/3.6.9/Python-3.6.9.tar.xz二、解压xz-dPython-3.6.9.
- php 使用 LOAD DATA LOCAL INFILE方法插入测试数据
fanchengliang
参考网上LOADDATALOCALINFILE的使用方法,做了一个demo,记录下主要使用过程需求:往数据库表插入大量的测试数据主要步骤:1.生成一个需要的数据txt文件,这个文件大概长这样image.png(这里数据格式和样式在后面可根据自己需求修改)2.将这个文件使用LOADDATALOCALINFILE命令导入数据主要代码1.数据库连接//有一种mysqli的set_local_infile
- RK3588 Debian11进行源码编译安装Pyqt5
不做签到员
debianrknnrk3588编译安装pyqt5sip
RK3588Debian11进行源码编译安装Pyqt5参考链接https://blog.csdn.net/qq_38184409/article/details/137047584?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171808774816800222841743%2522%252C%2522scm%2522%253A%
- php操作mysql防止sql注入(合集)
get200
mysqlmysql注入
本文将从sql注入风险说起,并且比较addslashes、mysql_escape_string、mysql_real_escape_string、mysqli和pdo的预处理的区别。当一个变量从表单传入到php,需要查询mysql的话,需要进行处理。举例:$unsafe_variable=$_POST[‘user_input’];mysqli_query(“INSERTINTOtable(col
- 04.编译安装nginx
哈哈大圣
编译安装nginx一、Nginx简介1.Nginx的简介Nginx是一款高性能的http服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器。由俄罗斯的程序设计师伊戈尔·西索夫(IgorSysoev)所开发,官方测试nginx能够支支撑5万并发链接,并且cpu、内存等资源消耗却非常低,运行非常稳定。2.Nginx应用场景【ttp服务器】。Nginx是一个http服务可以独立提供http
- 学习关系型数据库:在MAC下编译安装firebird
skywalk8163
数据库学习数据库macos
Firebird是一种关系型数据库管理系统,它使用SQL(结构化查询语言)进行数据操作。与许多其他数据库系统相比,Firebird以其卓越的性能、稳定性和可扩展性而著称。尝试在MAC下编译安装firebird从下载页面下载,选最新的版本:https://sourceforge.net/projects/firebird/files/这里有比较老的一篇mac安装指南:https://www.fire
- linux nicstat
秋夫人
linuxlinux
nicstat是一个用于监控和报告网络接口统计信息的工具。它可以提供关于网络接口的详细性能数据,包括传输速率、错误率、丢包率等。nicstat对于诊断网络性能问题和优化网络配置非常有用。安装nicstatnicstat可能不在所有Linux发行版的默认软件库中,因此你可能需要从源代码编译安装。以下是安装步骤:下载源代码:gitclonehttps://github.com/scotte/nicst
- Linux基础2
Lfei5120
linux
文章目录RHCSA课程回顾注:自动化的前提是标准化、规范化。1.网卡命令的步骤:2.ifconfig命令操作3.IP命令及操作4.ss命令操作5.网卡的配置6.硬盘命令7.fdisk命令及操作8.格式化9挂载10.永久挂载11.计划任务12.日志服务与管理13.httpd编译安装apr-util安装http安装http安装RHCSA课程回顾注:自动化的前提是标准化、规范化。网卡回归传统命名一般是:
- Git安装及配置
启航学途
git专栏gitgit安装git配置git帐号配置git环境配置git使用git入门
Git安装在你开始使用Git前,需要将它安装在你的计算机上。即便已经安装,最好将它升级到最新的版本。你可以通过软件包或者其它安装程序来安装,或者下载源码编译安装。下面,我们将会介绍不同操作系统上Git的安装方法。在Windows上安装在Windows上安装Git的方法如下:使用官方版本安装官方版本可以在Git官方网站下载。打开https://git-scm.com/download/win,然后选
- python sql语句生成_python自动生成sql语句的脚本
weixin_39531183
pythonsql语句生成
描述:工作中在数据库中创建表时,当字段很多时,比较麻烦,开发一个工具,可在excel中写好字段英文名和中文名,然后通过py生成脚本或直接在库中生成表脚本:importtkinterfromtkinterimport*importtkinter.messageboxfromtkinterimportscrolledtextimportxlrdimportpymysqlimportos#从excel中
- MySql插入语句时报错,错误代码1062
SheldonChang
数据库mysqlsqlmybatis数据库
MySql插入语句时报错,错误代码1062mysql工具操作报错程序运行报错Cause:com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:Duplicateentry‘123456’forkey‘order_number’;Duplicateentry‘123456’forkey‘order_num
- nginx 同一个端口支持http和https配置
罗雀儿
httpnginxhttps
原理:使用nginx的stream、stream_ssl_preread模块由于stream和stream_ssl_preread模块非默认引入,需要在编译安装nginx时引入;编译时添加配置参数--with-stream--with-stream_ssl_preread_module1、编译nginx./configure--prefix=/usr/local/nginx--with-http_
- haproxy编译安装
时迁10
linux
一、haproxy简介HAProxy是一个使用C语言编写的自由及开放源代码软件,其提供高可用性、负载均衡,以及基于TCP和HTTP的应用程序代理。HAProxy特别适用于那些负载特大的web站点,这些站点通常又需要会话保持或七层处理。HAProxy运行在当前的硬件上,完全可以支持数以万计的并发连接。并且它的运行模式使得它可以很简单安全的整合进您当前的架构中,同时可以保护你的web服务器不被暴露到网
- [每周一更]-(第111期):从零开始:如何在 CentOS 上源码编译安装 PHP 7.4
ifanatic
每周一更PHPcentosphplinux
文章目录系统信息:0、安装版本:1、下载/解压2、安装依赖3、配置autoconf4、配置参数5、编译和安装6、验证安装的插件6.1、配置php.ini6.2、配置opcache7、错误7.1Failedtoconnectto2a03:2880:f10e:83:face:b00c:0:25de:Networkisunreachable7.1.1禁用yum使用IPv67.1.2使用备用镜像7.2co
- mysql 批处理速度_mysql批处理性能优化
martingalesquare
mysql批处理速度
参考了:http://blog.csdn.net/tolcf/article/details/52102849后来根据自己情况测试一次,结果如下。1、mysqlinsert####第一种测试情况batchSize=5000;connection.setAutoCommit(false);prepStatement.addBatch();##----测试结果如下----2016-09-1014:53
- 玩转Ambari之二----基于ubuntu的源码编译和安装
Heavbird
大数据HadoopAmbari
网上关于ambari安装的有很多,有直接从现成的源直接下载安装的,也有自己构建本地源安装的,还有不少自己从apache网站下载源码编译安装的。前两者相对简单,依赖小,期间遇到问题也少,顺利的话,可能什么问题都碰不到就完成了。后者会遇到各种不同的问题。apache网上公布的最新版本是2.5.2,鉴于网上能搜到的基于源码安装帖子的版本都较老,并且很多都是基于centos的,基于Ubuntu的很少。我们
- 高性能web服务器3——Nginx编译安装
Autter_A3
前端服务器nginx
Nginx编译安装准备环境系统要求:操作系统:Linux或类Unix系统。编译器:GCC或其他兼容的C编译器。源码安装需要提前准备标准的编译器,GCC的全称是(GNUCompilercollection),其有GNU开发,并以GPL即LGPL许可,是自由的类UNIX即苹果电脑MacOSX操作系统的标准编译器,因为GCC原本只能处理C语言,所以原名为GNUC语言编译器,后来得到快速发展,可以处理C+
- 编译安装FFmpeg
Solomon_Xie
参考官方:CompileFFmpegforUbuntu,Debian,orMint编译安装FFmpeg不光是需要编译它本身,还需要编译安装一系列的视频处理器。基本安装步骤:安装后面编译所需的依赖:autoconfautomakebuild-essentialcmakegit-corelibass-devlibfreetype6-devlibsdl2-devlibtoollibva-devlibvd
- 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 速度很慢而且效率也不