- JavaEE学习笔记(1)--------Web应用入门
咸鱼尾巴
前端java-ee学习
第一章Web应用入门学习目标:理解C/S和B/S架构的概念使用Tomcat部署静态网站使用Eclipse创建Web项目1.Web应用简介(1)程序架构1)C/S架构程序(应用程序软件JavaApp):用户通过客户端程序访问应用程序服务器2)B/S程序架构:用户通过浏览器访问应用程序服务器采用请求/响应模式进行交互:①用户:在浏览器输入ip+端口号或域名②浏览器:向应用服务器发送客户端的请求③应用程
- docker容器化技术
竺竺牧牧
java基础docker容器java
docker容器化技术1.docker概述docker简单的说就是一个沙盒技术,主要目的是为了将应用运行在其中与外界隔离,方便这个沙盒可以被转移到其它宿主机器。docker虚拟化的是javaapp、依赖包、环境信息、操作系统软件。先有docker后有容器化技术,docker基于linuxcontainers。2.docker优势docker体积小,启动速度快。一次构建处处运行。1.应用部署环境污染
- 使用docker-compose管理docker服务
彦楠
Dockerdocker容器docker-compose
使用docker-compose管理docker服务1,创建docker-compose.ymlversion:'3'services:javaapp:deploy:resources:limits:cpus:'1'#设置CPU限制为0.5核心memory:2048M#设置内存限制为512MBbuild:context:./javaappdockerfile:Dockerfileports:-"9
- alpine镜像中jvm工具不可用问题
getsu
问题在alpine镜像中使用诸如jstack,jinfo工具,有如下报错:1:UnabletogetpidofLinuxThreadsmanagerthread原因发现PID为1的时候,工具不可用。解决Dockerfile里使用如下命令启动:CMD["/bin/sh","-c","javaAPP","&&1"]或者使用--init参数来启动docker。
- Eclipse Java程序时序图
Lcap
今天的主角是:Eclipse插件:AmaterasUML中的时序图(Sequencediagram)--官网地址。安装过程请自行百度或者参见官网描述.重要的是SequenceAPIexample中的调用栈获取:在想分析的目标方法处打断点;2.启用调试模式;3.在命令行使用jps-l命令,查找当前JavaApp的进程号;4.使用jstack${java_app_process_number}>${f
- Android 11 修改Launcher3安装应用从第一页开始安装
最乱纷飞的code
Android系统android
sprd/packages/apps/Launcher3/src/com/android/launcher3/model/AddWorkspaceItemsTask.javaapp,screenItems.get(screenId),cordinates,spanX,spanY);}if(true||!found){//modaddtrue//Searchonanyofthescreensstar
- linux 关闭tomcat日志打印,linux下打开与关闭tomcat 实时查看tomcat运行日志
李创奇
linux关闭tomcat日志打印
摘要腾兴网为您分享:linux下打开与关闭tomcat实时查看tomcat运行日志,小米云盘,尚游戏,锐捷,卖萌相机等软件知识,以及360驱动大师,哔哩哔哩专栏,大力菠菜网,蹭饭网,bartender2016,专业计算器,人脸识别系统软件,yolanda体脂秤,闪乱神乐少女们的抉择,租房车app,javaapp,汇编语言编译器,分之道网校,巧遇卡,耳机大家坛等软件it资讯,欢迎关注腾兴网。一,li
- (2023年最新版)史上最全Python/Java自动化测试学习路线图!没有之一!
yoyo小小汐~
软件测试自动化测试测试开发测试工程师接口测试
废话少说,直接上干货!保证是你2023年看到最全最详细的自动化测试进阶学习路线全栈图!!赶紧保存!由于全图图片太大上传不了,这里就不展示了。需要的小伙伴们可以文末小卡片联系我下面展示部分截图,文末附免费下载方式。Python编程语言篇Java语言学习大全PythonWEB自动化测试JavaWEB自动化测试PythonAPP自动化测试JavaAPP自动化测试Python接口自动化测试Java接口自动
- Android NDK 开发Demo
天问chen
androidandroidstudiojava
文章目录1.准备环境2、编码2.1创建Project2.2创建javaapp2.3创建native-lib2.4androidapp增加native-lib依赖2.5编译运行AndroidNDKHelloWorld是一个简单的示例,它演示了如何使用AndroidNDK开发库。1.准备环境wingcc工具链安装:https://editor.csdn.net/md/?articleId=130095
- JMS Java消息服务(Java Message Service)
java高并发
JMS在一些场景下RPC的同步方式可能不太适合业务逻辑的处理,并且这种方式在某些场景下会导致业务的紧耦合。基于异步交互模型的JMS解决了RPC产生的紧耦合问题,它提供了一个可以通过网络访问的抽象消息队列。结构JMS应用由以下几个部分组成:AJMSprovider:AmessagingsystemthatimplementstheJMSspecification.JMSclients:Javaapp
- app-bot-java 简介
yummy觉一
app-bot-javaapp-bot-java概述之前用Python实现过一版,但由于对Python不熟,后期代码扩展时很棘手。由于一直用java做开发,所以抱着学习的心态,用java做了重构,考虑了一些设计模式,相对之前用Python实现的,好了很多。java面向对象设计的思想再结合设计模式,对应用后期的迭代、扩展都是很好的。主界面功能soul:灵魂匹配、机器人聊天、对瞬间点赞、对瞬间评论抖音
- android平台led开发之内核硬件驱动层
lvmengcool1
Android源码编译运行移植android平台硬件驱动android开发内核
手上有一个android开发平台,于是想在底层加个自己的硬件模块然后通过Android的HAL方式向上封装出底层驱动供JAVAAPP调用。既然是刚上手,那就用led灯来做为先导开发走走流程吧,至少得把从内核到应用层的流程走通才行。从底层到上层一共分成四个阶段。1:内核硬件驱动层2:HAL(硬件抽象层)3:框架层(framework,包含JNI和实现硬件服务的JAVA接口)4:JAVA应用层一,首先
- java历史
anqian1974
操作系统java运维
背景Java是由SunMicrosystems公司推出的Java面向对象程序设计语言(以下简称Java语言)和Java平台的总称。由JamesGosling和同事们共同研发,并在1995年正式推出。Java最初被称为Oak,是1991年为消费类电子产品的嵌入式芯片而设计的。1995年更名为Java,并重新设计用于开发Internet应用程序。用Java实现的HotJava浏览器(支持Javaapp
- Android native应用开发简明教程 (2) - 本地应用的原理
Jtag特工
本地应用原理从NativeActivity说起本地App,本质上是一个JavaApp调用了一个JNI的库,而应用的逻辑通过native代码来实现。NativeActivity是继承自Activity的一个类,代码在:/frameworks/base/core/java/android/app/NativeActivity.java中:publicclassNativeActivityextends
- docker安装openjdk并运行jar包的操作方法
下载镜像dockerpullopenjdk创建数据卷创建一个java_app的数据卷dockervolumecreatejava_app将jar包上传到/var/lib/docker/volumes/java_app/_data/下,然后启动镜像启动镜像dockerrun--name=javaApp--restart=always--network=host\-vjava_app:/usr/src
- MyEclipse 6 + NetBeans 6 开发窗体程序
jackongxp
自从Netbeans6发布以来,很多原来使用Eclipse的程序员转到了NetBeans上来。存在即合理,这两大平台都有为数不少的支持者,可见他们各自都有其吸引人的优点。以下将介绍如何用MyEclipse+Netbeans来开发窗体程序。假设MyEclipse的工作空间在D:/javaApp/下。第一步:打开NetBeans6,点击File->NewProject,打开新建项目对话框,如下图:选择
- Mac系统开发之——Java
PGzxc
Macmacjava
一概述本文主要讲述在Mac系统下进行开发时,Java相关的操作:查看Java版本Java卸载Java安装Java配置二Java卸载2.1查看已安装的Java版本2.2卸载已安装的Java版本单击位于停靠栏中的Finder图标在Finder菜单中单击前往单击实用工具双击终端图标在“终端”窗口中,复制并粘贴以下命令:sudorm-fr/Library/Internet\Plug-Ins/JavaApp
- 在Java App中启动进程
hemingwang0902
Java
在JavaApp中启动进程Java1.5增加了非常实用的Process和ProcessBuilder类,能让我们非常方便地在Java应用程序中启动其他任何可执行文件和脚本。以下代码将运行一个记事本:如果传入参数,则参数将作为完整的命令传入新创建的Process(第一个参数为Process的文件路径)。Process类的start()方法将启动新的进程。此外,waitFor()方法能让当前线程等待直
- JavaApp自动化测试系列[v1.0.0][Appium数据驱动测试框架]
Davieyang.D.Y
数据驱动测试框架DP数据驱动DataProviderCVS
测试框架总体来说与应用开发的框架并无太大的差异,在设计的起始阶段初衷也都一样,满足测试绝大多数活动并提高测试代码的编写效率,然后兼顾易用、兼容、通用以及简单维护等几个维度是其存在的唯一意义,它是测试开发过程中提取特定领域测试方法共性部分而形成的体系结构,然而不同的测试领域有不同的测试框架,不同的软件公司也应有属于自己的测试框架框架设计前提已经熟练掌握了Appium环境的安装与配置,请参考JavaA
- JavaApp自动化测试系列[v1.0.0][PageFactory注解详解]
Davieyang.D.Y
PageFactoryPageFactory注解
packageorg.davieyang.testscripts;importio.appium.java_client.MobileElement;importio.appium.java_client.android.AndroidElement;importorg.openqa.selenium.Alert;importorg.openqa.selenium.WebElement;impor
- JavaApp自动化测试系列[v1.0.0][Page Factory模式]
Davieyang.D.Y
PageFactoryPF模式PageFactory模式
PageFactory模式PageFactory模式的概念和PO类似,或者说是它的一种扩展,通过注解的方式定位元素对象,需要在构建函数里调用PageFactory.initElements(driver,this)来初始化PO对象,修改页面对象类文件,代码示例如下packageorg.davieyang.pages;importio.appium.java_client.android.Andro
- JavaApp自动化测试系列[v1.0.0][Appium使用详解]
Davieyang.D.Y
AppiumGUIAppiumInspector
启动AppiumServer通过StartServer按钮启动Appium服务点击StartServerv1.18.0按钮,使用默认Host和Port启动AppiumServer通过Advanced标签页启动Appium服务单击配置好Appium服务器参数后,点击StartServerv1.18.0按钮启动服务点击SaveAsPreset...可以保存预设的Advanced选项,方便以后使用,已经
- JavaApp自动化测试系列[v1.0.1][Appium开发环境搭建]
Davieyang.D.Y
DesiredCapsAppiumJava
JavaAppium实例代码我们先看一段真实的java代码,我将他放在了TestNG框架的@BeforeTest里,执行这段即可启动安卓手机上的APP“com.tencent.Q108”后边一一详述1@BeforeTest2publicvoidsetUp()throwsMalformedURLException{3DesiredCapabilitiescaps=newDesiredCapabili
- JavaApp自动化测试系列[v1.0.0][Desired Capabilities]
Davieyang.D.Y
DesiredCapAndroidONLYUIAutomatorEspressoOnlyiOSOnly
AppiumDesiredCapabilitiesGeneralCapabilitiesCapabilityDescriptionValuesautomationNameWhichautomationenginetouseAppium(default),orUiAutomator2,Espresso,orUiAutomator1forAndroid,orXCUITestorInstrumentsf
- JavaApp自动化测试系列[v1.0.0][uiautomatorviewer元素定位]
Davieyang.D.Y
uiautomatorApp元素定位安卓App元素定位
在WIndows系统上进行元素定位,建议使用这个工具,在Mac上建议用AppiumInspector启动uiautomatorviewer.bat链接移动设备确认连接手机状态正常-》打开手机qq页面,让屏幕处于点亮状态点左上角安卓机器人按钮DevicesScreenshot按钮刷新页面定位元素点击登录按钮代码实例如上图所示,定位了登陆按钮,代码实例如下12packagetestscript;/*3
- JavaApp自动化测试系列[v1.0.0][adb命令]
Davieyang.D.Y
adb是PC端控制移动端的桥梁,也是移动端自动化测试包括Appium自动化测试的基础,所谓自动化就是以程序测试程序,以代码代替思维,以脚本的运行代替手动操作adb的全称是AndroidDebugBridge,它其实就是一种集成在安卓SDK中的命令行工具,我们平时用到的PC端控制移动端的工具几乎都是依赖它来完成对移动端的操作的AndroidDebugBridge结构adb主要有3个部分组成运行在PC
- JavaApp自动化测试系列[v1.0.0][Appium Inspector元素定位]
Davieyang.D.Y
AppiumInspectorIOS元素定位
FindingelementsbyxpathWebElementdigit_9=driver.findElement(By.xpath("//android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.support.v4.view.viewPager[1]/
- JavaApp自动化测试系列[v1.0.0][MacAppium开发环境搭建]
Davieyang.D.Y
玩转环境配置MacAppiumMacSDK
安装包工具准备:jdk1.8.0(64位)android-sdk_r24.4.1-macosx.zipJDK的安装及配置官方下载地址:https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html选中“AcceptLicenseAgreement”,下载所需版本即可,这里下载的是“MacOSX
- Java Web Start实例
一生有你527
JWS让用户可以下载服务器端的JavaApplication到本机运行,并且没有安装、配置等繁琐的操作JWS的运行原理:浏览器运行JavaApplication的链接指向的不是程序本身,而是一个*.jnlp(JavaNetworkLaunchingProtocol,java网络加载协议),该文件包含了JavaApplication的一些配置信息。浏览器解读这个文件的信息,将服务器端的JavaApp
- Windows下的java启动脚本
jason5186
windows
最近部分项目的子系统由linux转向windows,根据实际情况的需求结合网络资源整理了一份Bat脚本,用于在Windows下启动javaapp。脚本:@echooffREMProjectname:Windows下的java启动脚本REMAuthor:JasonREMDate:2013-4-16REMVersion:1.0IF"%CLASSPATH%"EQU""(echoCLASSPATHPARA
- 统一思想认识
永夜-极光
思想
1.统一思想认识的基础,才能有的放矢
原因:
总有一种描述事物的方式最贴近本质,最容易让人理解.
如何让教育更轻松,在于找到最适合学生的方式.
难点在于,如何模拟对方的思维基础选择合适的方式. &
- Joda Time使用笔记
bylijinnan
javajoda time
Joda Time的介绍可以参考这篇文章:
http://www.ibm.com/developerworks/cn/java/j-jodatime.html
工作中也常常用到Joda Time,为了避免每次使用都查API,记录一下常用的用法:
/**
* DateTime变化(增减)
*/
@Tes
- FileUtils API
eksliang
FileUtilsFileUtils API
转载请出自出处:http://eksliang.iteye.com/blog/2217374 一、概述
这是一个Java操作文件的常用库,是Apache对java的IO包的封装,这里面有两个非常核心的类FilenameUtils跟FileUtils,其中FilenameUtils是对文件名操作的封装;FileUtils是文件封装,开发中对文件的操作,几乎都可以在这个框架里面找到。 非常的好用。
- 各种新兴技术
不懂事的小屁孩
技术
1:gradle Gradle 是以 Groovy 语言为基础,面向Java应用为主。基于DSL(领域特定语言)语法的自动化构建工具。
现在构建系统常用到maven工具,现在有更容易上手的gradle,
搭建java环境:
http://www.ibm.com/developerworks/cn/opensource/os-cn-gradle/
搭建android环境:
http://m
- tomcat6的https双向认证
酷的飞上天空
tomcat6
1.生成服务器端证书
keytool -genkey -keyalg RSA -dname "cn=localhost,ou=sango,o=none,l=china,st=beijing,c=cn" -alias server -keypass password -keystore server.jks -storepass password -validity 36
- 托管虚拟桌面市场势不可挡
蓝儿唯美
用户还需要冗余的数据中心,dinCloud的高级副总裁兼首席营销官Ali Din指出。该公司转售一个MSP可以让用户登录并管理和提供服务的用于DaaS的云自动化控制台,提供服务或者MSP也可以自己来控制。
在某些情况下,MSP会在dinCloud的云服务上进行服务分层,如监控和补丁管理。
MSP的利润空间将根据其参与的程度而有所不同,Din说。
“我们有一些合作伙伴负责将我们推荐给客户作为个
- spring学习——xml文件的配置
a-john
spring
在Spring的学习中,对于其xml文件的配置是必不可少的。在Spring的多种装配Bean的方式中,采用XML配置也是最常见的。以下是一个简单的XML配置文件:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.or
- HDU 4342 History repeat itself 模拟
aijuans
模拟
来源:http://acm.hdu.edu.cn/showproblem.php?pid=4342
题意:首先让求第几个非平方数,然后求从1到该数之间的每个sqrt(i)的下取整的和。
思路:一个简单的模拟题目,但是由于数据范围大,需要用__int64。我们可以首先把平方数筛选出来,假如让求第n个非平方数的话,看n前面有多少个平方数,假设有x个,则第n个非平方数就是n+x。注意两种特殊情况,即
- java中最常用jar包的用途
asia007
java
java中最常用jar包的用途
jar包用途axis.jarSOAP引擎包commons-discovery-0.2.jar用来发现、查找和实现可插入式接口,提供一些一般类实例化、单件的生命周期管理的常用方法.jaxrpc.jarAxis运行所需要的组件包saaj.jar创建到端点的点到点连接的方法、创建并处理SOAP消息和附件的方法,以及接收和处理SOAP错误的方法. w
- ajax获取Struts框架中的json编码异常和Struts中的主控制器异常的解决办法
百合不是茶
jsjson编码返回异常
一:ajax获取自定义Struts框架中的json编码 出现以下 问题:
1,强制flush输出 json编码打印在首页
2, 不强制flush js会解析json 打印出来的是错误的jsp页面 却没有跳转到错误页面
3, ajax中的dataType的json 改为text 会
- JUnit使用的设计模式
bijian1013
java设计模式JUnit
JUnit源代码涉及使用了大量设计模式
1、模板方法模式(Template Method)
定义一个操作中的算法骨架,而将一些步骤延伸到子类中去,使得子类可以不改变一个算法的结构,即可重新定义该算法的某些特定步骤。这里需要复用的是算法的结构,也就是步骤,而步骤的实现可以在子类中完成。
 
- Linux常用命令(摘录)
sunjing
crondchkconfig
chkconfig --list 查看linux所有服务
chkconfig --add servicename 添加linux服务
netstat -apn | grep 8080 查看端口占用
env 查看所有环境变量
echo $JAVA_HOME 查看JAVA_HOME环境变量
安装编译器
yum install -y gcc
- 【Hadoop一】Hadoop伪集群环境搭建
bit1129
hadoop
结合网上多份文档,不断反复的修正hadoop启动和运行过程中出现的问题,终于把Hadoop2.5.2伪分布式安装起来,跑通了wordcount例子。Hadoop的安装复杂性的体现之一是,Hadoop的安装文档非常多,但是能一个文档走下来的少之又少,尤其是Hadoop不同版本的配置差异非常的大。Hadoop2.5.2于前两天发布,但是它的配置跟2.5.0,2.5.1没有分别。 &nb
- Anychart图表系列五之事件监听
白糖_
chart
创建图表事件监听非常简单:首先是通过addEventListener('监听类型',js监听方法)添加事件监听,然后在js监听方法中定义具体监听逻辑。
以钻取操作为例,当用户点击图表某一个point的时候弹出point的name和value,代码如下:
<script>
//创建AnyChart
var chart = new AnyChart();
//添加钻取操作&quo
- Web前端相关段子
braveCS
web前端
Web标准:结构、样式和行为分离
使用语义化标签
0)标签的语义:使用有良好语义的标签,能够很好地实现自我解释,方便搜索引擎理解网页结构,抓取重要内容。去样式后也会根据浏览器的默认样式很好的组织网页内容,具有很好的可读性,从而实现对特殊终端的兼容。
1)div和span是没有语义的:只是分别用作块级元素和行内元素的区域分隔符。当页面内标签无法满足设计需求时,才会适当添加div
- 编程之美-24点游戏
bylijinnan
编程之美
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Random;
import java.util.Set;
public class PointGame {
/**编程之美
- 主页面子页面传值总结
chengxuyuancsdn
总结
1、showModalDialog
returnValue是javascript中html的window对象的属性,目的是返回窗口值,当用window.showModalDialog函数打开一个IE的模式窗口时,用于返回窗口的值
主界面
var sonValue=window.showModalDialog("son.jsp");
子界面
window.retu
- [网络与经济]互联网+的含义
comsci
互联网+
互联网+后面是一个人的名字 = 网络控制系统
互联网+你的名字 = 网络个人数据库
每日提示:如果人觉得不舒服,千万不要外出到处走动,就呆在床上,玩玩手游,更不能够去开车,现在交通状况不
- oracle 创建视图 with check option
daizj
视图vieworalce
我们来看下面的例子:
create or replace view testview
as
select empno,ename from emp where ename like ‘M%’
with check option;
这里我们创建了一个视图,并使用了with check option来限制了视图。 然后我们来看一下视图包含的结果:
select * from testv
- ToastPlugin插件在cordova3.3下使用
dibov
Cordova
自己开发的Todos应用,想实现“
再按一次返回键退出程序 ”的功能,采用网上的ToastPlugins插件,发现代码或文章基本都是老版本,运行问题比较多。折腾了好久才弄好。下面吧基于cordova3.3下的ToastPlugins相关代码共享。
ToastPlugin.java
package&nbs
- C语言22个系统函数
dcj3sjt126com
cfunction
C语言系统函数一、数学函数下列函数存放在math.h头文件中Double floor(double num) 求出不大于num的最大数。Double fmod(x, y) 求整数x/y的余数。Double frexp(num, exp); double num; int *exp; 将num分为数字部分(尾数)x和 以2位的指数部分n,即num=x*2n,指数n存放在exp指向的变量中,返回x。D
- 开发一个类的流程
dcj3sjt126com
开发
本人近日根据自己的开发经验总结了一个类的开发流程。这个流程适用于单独开发的构件,并不适用于对一个项目中的系统对象开发。开发出的类可以存入私人类库,供以后复用。
以下是开发流程:
1. 明确类的功能,抽象出类的大概结构
2. 初步设想类的接口
3. 类名设计(驼峰式命名)
4. 属性设置(权限设置)
判断某些变量是否有必要作为成员属
- java 并发
shuizhaosi888
java 并发
能够写出高伸缩性的并发是一门艺术
在JAVA SE5中新增了3个包
java.util.concurrent
java.util.concurrent.atomic
java.util.concurrent.locks
在java的内存模型中,类的实例字段、静态字段和构成数组的对象元素都会被多个线程所共享,局部变量与方法参数都是线程私有的,不会被共享。
- Spring Security(11)——匿名认证
234390216
Spring SecurityROLE_ANNOYMOUS匿名
匿名认证
目录
1.1 配置
1.2 AuthenticationTrustResolver
对于匿名访问的用户,Spring Security支持为其建立一个匿名的AnonymousAuthenticat
- NODEJS项目实践0.2[ express,ajax通信...]
逐行分析JS源代码
Ajaxnodejsexpress
一、前言
通过上节学习,我们已经 ubuntu系统搭建了一个可以访问的nodejs系统,并做了nginx转发。本节原要做web端服务 及 mongodb的存取,但写着写着,web端就
- 在Struts2 的Action中怎样获取表单提交上来的多个checkbox的值
lhbthanks
javahtmlstrutscheckbox
第一种方法:获取结果String类型
在 Action 中获得的是一个 String 型数据,每一个被选中的 checkbox 的 value 被拼接在一起,每个值之间以逗号隔开(,)。
所以在 Action 中定义一个跟 checkbox 的 name 同名的属性来接收这些被选中的 checkbox 的 value 即可。
以下是实现的代码:
前台 HTML 代码:
- 003.Kafka基本概念
nweiren
hadoopkafka
Kafka基本概念:Topic、Partition、Message、Producer、Broker、Consumer。 Topic: 消息源(Message)的分类。 Partition: Topic物理上的分组,一
- Linux环境下安装JDK
roadrunners
jdklinux
1、准备工作
创建JDK的安装目录:
mkdir -p /usr/java/
下载JDK,找到适合自己系统的JDK版本进行下载:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
把JDK安装包下载到/usr/java/目录,然后进行解压:
tar -zxvf jre-7
- Linux忘记root密码的解决思路
tomcat_oracle
linux
1:使用同版本的linux启动系统,chroot到忘记密码的根分区passwd改密码 2:grub启动菜单中加入init=/bin/bash进入系统,不过这时挂载的是只读分区。根据系统的分区情况进一步判断. 3: grub启动菜单中加入 single以单用户进入系统. 4:用以上方法mount到根分区把/etc/passwd中的root密码去除 例如: ro
- 跨浏览器 HTML5 postMessage 方法以及 message 事件模拟实现
xueyou
jsonpjquery框架UIhtml5
postMessage 是 HTML5 新方法,它可以实现跨域窗口之间通讯。到目前为止,只有 IE8+, Firefox 3, Opera 9, Chrome 3和 Safari 4 支持,而本篇文章主要讲述 postMessage 方法与 message 事件跨浏览器实现。postMessage 方法 JSONP 技术不一样,前者是前端擅长跨域文档数据即时通讯,后者擅长针对跨域服务端数据通讯,p