- window.open、window.showModalDialog和window.showModelessDialog 的区别
zmbaliqq
js
转自http://dwcmayday201204063551.iteye.com/blog/1621751一、前言要打开一个可以载入页面的子窗口有三种方法,分别是window.open、window.showModalDialog和window.showModelessDialog。open方法就是打开一个页面,可以说同用url链接打开一个页面一样,不推荐使用,因为很多浏览器会拦截。这里推荐使用的
- Window 打开新窗口的几种方式 window.location.href、window.open、window.showModalDialog
YangHuan3
vuevue.jsjavascriptelementui
我们写的项目是后台管理的话,当在当前窗口打开一个新窗口1、方式1:window.location.href例:window.location.href=`https://www.cnblogs.com/guorongtao/`;//在当前窗口中打开窗口vue中window.location.href="https://www.cnblogs.com/guorongtao/";//js中类似于HTM
- 移动端裁剪头像功能
风间澈618
js选择文件上传之前传统的选择文件方式是给一个input标签点击上传,然后美化一下UI。后面出了一些新的API,可以用js方式来处理选择文件这个操作。以下是一些相关的API:Window.showSaveFilePicker()Window.showOpenFilePicker()Window.showDirectoryPicker()Window.showModalDialog()(已删除)使用
- JavaScript Window 打开新窗口的几种方式 window.location.href、window.open、window.showModalDialog
xuefeng_210
javascript开发语言
1、方式1:window.location.hrefwindow.location.href="https://www.cnblogs.com/guorongtao/"; //在当前窗口中打开窗口类似于HTML:WelcomeTest12、方式2:window.openwindow.open("https://www.cnblogs.com/guorongtao/"); //在另外新
- 弹出子页面,兼容ie
痛心凉
window.showModalDialog()(兼容ie的写法)模式窗口,一种很特别的窗口,当它打开时,后面的父窗口的活动会停止,除非当前的模式子窗口关闭了,才能操作父窗口.在做网页Ajax开发时,我们应该有时会用到它来实现表单的填写,或做类似网上答题的窗口.它的特点是,传参很方便也很强大,可直接调用父窗口的变量和方法.使用方法:vReturnValue=window.showModalDial
- 如何把一个页面中textbox的值传给另一个页面中的textbox
realduke2000
相信以后必然有用到的地方!1、在ASP.NET2.0中,你可以把A页面的提交页面设置为B页面,在B页面中,就可以获取A页面里的控件值。2、你可以把值存放在Cookie或Session中,在B页面中获取。page1PAGE1...functionclick1()...{window.showModalDialog("page2.html",window,"height=200,width=400")
- showDialog回传值问题javascript
eric88
javascript
另一个贴子是别人写的,我参考了一下,这个是自己用到的。functionprAdvance(){if(validateSystem_SearchForm(System_SearchForm)){varobjForm=document.Systemlog_SearchForm;varnewUrl="/system/openAdDialog.do";window.showModalDialog(newU
- (转载)showdialog刷新问题
angehe56575
通过ShowModalDialog打开的页面会自动从IE的缓存中获得内容并显示。如果想每次通过ShowModalDialog打开的页面都自动刷新的话,只需要在脚本中设定一个参数,例如:ShowModalDialog("xxx.aspx?id=1&tempid=223");其中tempid是一个xxx.aspx中并不需要使用到的参数,只要这个参数每次不同,通过ShowModalDialog打开的页面
- js--前台双击域获取数据实践
GP0071
前台技术双击域
通过点击前台双击录入域,弹出模态框,展示数据,并且展示固定数量的数据,实现分页功能。1、首先在触发双击事件(ondblclick)后,需要弹出一个窗口。functionondbGuanLianADId(){adId=window.showModalDialog('getAdForMac.action',null,'dialogHeight=500px;dialogWidth=420px;');va
- window.showModalDialog不兼容解决办法
加班狂魔
前端
1.传值的解决办法1、直接设置父窗口的DOM对象的值。window.opener.document.getElementById(“parentWindowControlId”).value="数window.opener.document.getElementById(“parentWindowControlId”).value="数据";父窗口中应该有一个id为parentWindowCont
- 用open或showModalDialog实现父子页面传值
幸福是什么感觉呢
学习轨迹java
1open如果实现open窗口父子页面传值,在父页面声明一个函数,函数要求要有参数,用来接收子页面传过来的值,子页面通过调用“window.opener.父页面函数”来实现将值传回父页面。父页面://open窗口functionchooseDept(){window.open("listDept.html","","width=150px,height=400px");}functionrecei
- jsp showModalDialog父子窗口传值
yinxianluo
JAVA开发JSjspshowModalDialog
NewDocument传递到父窗口的值:返回的值:子窗口设置的值:child.htmlNewDocument父窗口传递来的值:输入要设置父窗口的值:输入返回的值:说明1.下面是取消客户端缓存的:也可以在服务器端取消缓存,参考脚本之家下一篇文章2.向父窗口传递阐述在ASP.NET中也可以是用aaa.aspx?id=1的方式传递.3.不刷新父窗口的话在父窗口中直接这样一来设置可以.window.sho
- HTML父子页面通信问题(showModalDialog)
weixin_30872867
1.showModalDialog参数说明window.showModalDialog(URL,ARGS,Features)(在父窗口中调用打开新的窗口)URL--必选参数,类型:字符串。用来指定对话框要显示的文档的URL。ARGS--可选参数,类型:变体。向窗口中传递参数。在子窗口中使用window.dialogArguments来取得传递进来的参数。Features--可选参数,类型:字符串。
- JS中showModalDialog 详细使用
weixin_30483013
javascript
基本介绍:showModalDialog()(IE4+支持)showModelessDialog()(IE5+支持)window.showModalDialog()方法用来创建一个显示HTML内容的模态对话框。window.showModelessDialog()方法用来创建一个显示HTML内容的非模态对话框。使用方法:vReturnValue=window.showModalDialog(sUR
- 在IE8下的target="_self"问题,我以前问的,原因找到
飞飞的魔毯小窝
原贴是这样的问题是这样的我在A窗口用showModalDialog方法弹出一个新窗口B,但单击新窗口B中的按钮后,IE8下又会弹出一个新窗口,但IE6下不会。因为我加了这行代码。难道IE8下,这个语句没有用?IE6下是可以的。求解。解决方法:问题源头解决了将这一段放到的下面,放在其它地方不行。
- 子窗口保存修改并关闭,同时刷新父窗口
cookie-niu
net
问题描述:在子页面中,修改完点保存的时候,保存数据,自身关闭,父页面刷新,以显示修改后的数据1、在父页面:点修改时弹出子窗口的代码(用window.showModalDialog主要是让用户必须点此修改响应后才能做其他的任务):Js代码//showModalDialog窗体中的第二个参数,是当前窗体对象',window,'dialogWidth:480px;dialogHeight:180px;s
- js showModalDialog参数传递
kissdeath
编程交流
showModalDialog:模式窗口,一种很特别的窗口,当它打开时,后面的父窗口的活动会停止,除非当前的模式子窗口关闭了,才能操作父窗口.在做网页Ajax开发时,我们应该有时会用到它来实现表单的填写,或做类似网上答题的窗口.它的特点是,传参很方便也很强大,可直接调用父窗口的变量和方法.使用方法:vReturnValue=window.showModalDialog(sURL[,vArgumen
- 父页面与子窗口Dialog相互传值的方法
抓住梦想
HTMLErrorMessage[JS+JQ+AJ+JSON]
这里使用了JavaScript的showModalDialog()方法父页面---------------------------------------------------------------------------functionmyDialog(){vararr=newArray(2);//创建数据arr[0]="参数1";//添加参数arr[1]="参数2";//添加参数varur
- 父子页面相互调用总结
iteye_17981
Web
父子页面相互调用是一个在开发中经常遇到的问题,但是没有找到过比较全面的文章介绍。在此总结下来,供大家参考。四种方式一般情况下,我们可以使用iframe、window的open、showModalDialog、showModelessDialog方法这四种方式打开一个子窗口。(showModalDialog、showModelessDialog是IE独有的。)下面分这四种方式来讨论如何父子页面互相调
- 关于window.showModalDialog 的简单应用,父子窗口之间的传递
azheng270
JavaScript
关于window.showModalDialog的简单应用,父子窗口之间的传递parent.htmfunctionshowmd(id){varsRet=window.showModalDialog("md.htm?id="+id,window,"scroll:0;status:0;help:0;resizable:0;dialogWidth:200px;dialogHeight:170px");i
- window.showModalDialog刷新父窗口 父子窗口之间传值
ZKLxuankai
javascript
第一个问题:刷新父窗口(没有传值操作)父页面打开时一定要传window参数openModalDialog("son.html",window,800,600);子页面中刷新:window.dialogArguments.location="parent.html";//parent.html是父页面的地址实例:parent.htmlson.htmlNewDocumentssssssssssssss
- showModalDialog基本操作:父子窗口互传参数
oso_kill
ajax学习
ShowModalDialog基本操作:父子窗口互传参数父窗口代码:CopytoClipboard引用的内容:[www.veryhuo.com]父窗口functiononOpenWindow(){//showModalDialog的第二个参数是传递给子窗口的值//在子窗口可以通过window.dialogArguments方法获取//如果不需要传递,这个参数就用window本身varobj=doc
- 模态对话框(window.showModalDialog),表单内容的提交、刷新父窗口的问题
sdfsf双方各
javaiframe框架
问题如题,详细如下:比如一个会员列表。点击某一会员名称后,window.showModalDialog出对话框后,在对话框里修改完会员的信息,如年龄,性别,EMAIL...等等以后后,提交,然后模态对话框关闭。父窗口刷新得见修改后的信息。在主页里写上:模态框里写上:将模态框提交给主页里那个隐藏的框架里后台接收页里写上这么一句代码:在模态窗口中把form对象克隆到父窗口中,然后控制父窗口中的form
- js windo.showModalDialog()模态窗口 url改变
iteye_18916
js
window模态窗口URL改变,或内容改变方式:1.window.name="targetName";functionpostData(){varaform=document.forms[0];aform.action=url;aform.target="targetName";aform.submit();}2.另一种解决方式是使用iframe第一种方式挺好用,比较推荐。对于那些在模态窗口里返回
- JS中ShowModalDialog(模态窗口)详细使用
tuobayi
javascript
基本介绍:showModalDialog()(IE4+支持)showModelessDialog()(IE5+支持)window.showModalDialog()方法用来创建一个显示HTML内容的模态对话框。window.showModelessDialog()方法用来创建一个显示HTML内容的非模态对话框。使用方法:vReturnValue=window.showModalDialog(sUR
- js弹出新页面并传值
tooxyp
JavaWeb
showModalDialog详细使用基本介绍:showModalDialog()(IE4+支持)showModelessDialog()(IE5+支持)window.showModalDialog()方法用来创建一个显示HTML内容的模态对话框。window.showModelessDialog()方法用来创建一个显示HTML内容的非模态对话框。使用方法:vReturnValue=window.
- ASP.NET 模式窗口(子父窗口之间的传值)
ysp
ASP.NET
window.showModalDialog有三个参数,第一:子窗体地址url,第二:传给子窗体的参数,第三:窗体外观参数,(高,宽,居中等参数)父窗体html:functionShowModialog(){varcity=$("#city").val();//cityname从子窗体返回来的值varcityname=window.showModalDialog("XMLWebForm.aspx"
- net打开子窗口传参数给父窗口
chenxueyong7345
ASP.NET
说明:点"查询"按钮打开子窗口,以GRIDVIEW显示,点每行后的选择按钮取到该行的指定单元格里的内容,传到父窗口的指定文本框中.父窗口代码:viewplaincopytoclipboardprint?functionsearch(){varobj=document.getElementById("").value;window.showModalDialog("../jgctaxnet/IPSN
- window.open用法——获取子窗口返回值
q13762258896
jquery
最近在做一个有关邮件发送功能,然而遇到了有关在选择收件人的时候,需要弹出一个子窗口,选择收件人之后将选择的数据返回到父窗口,然后完成发送功能!本想用window.showModalDialog()这个方法来获取子窗口的返回值,可是谷歌、QQ等浏览器似乎已不支持,通过参考了一些博客,似乎说新版的谷歌已废除了该用法。父窗口:window.open("user.do","","status=no,too
- window.showModalDialog刷新父窗口和本窗口的方法及注意
userstang
jsjsp
window.showModalDialog刷新父窗口和本窗口的方法及注意:一.刷新父窗口的方法:A.使用window.returnValue给父窗口传值,然后根据值判断是否刷新。在window.showModalDialog窗口页面中用window.returnValue方式设置返回值;比如:window.returnValue='refresh';B。在写window.showModalDia
- mysql主从数据同步
林鹤霄
mysql主从数据同步
配置mysql5.5主从服务器(转)
教程开始:一、安装MySQL
说明:在两台MySQL服务器192.168.21.169和192.168.21.168上分别进行如下操作,安装MySQL 5.5.22
二、配置MySQL主服务器(192.168.21.169)mysql -uroot -p &nb
- oracle学习笔记
caoyong
oracle
1、ORACLE的安装
a>、ORACLE的版本
8i,9i : i是internet
10g,11g : grid (网格)
12c : cloud (云计算)
b>、10g不支持win7
&
- 数据库,SQL零基础入门
天子之骄
sql数据库入门基本术语
数据库,SQL零基础入门
做网站肯定离不开数据库,本人之前没怎么具体接触SQL,这几天起早贪黑得各种入门,恶补脑洞。一些具体的知识点,可以让小白不再迷茫的术语,拿来与大家分享。
数据库,永久数据的一个或多个大型结构化集合,通常与更新和查询数据的软件相关
- pom.xml
一炮送你回车库
pom.xml
1、一级元素dependencies是可以被子项目继承的
2、一级元素dependencyManagement是定义该项目群里jar包版本号的,通常和一级元素properties一起使用,既然有继承,也肯定有一级元素modules来定义子元素
3、父项目里的一级元素<modules>
<module>lcas-admin-war</module>
<
- sql查地区省市县
3213213333332132
sqlmysql
-- db_yhm_city
SELECT * FROM db_yhm_city WHERE class_parent_id = 1 -- 海南 class_id = 9 港、奥、台 class_id = 33、34、35
SELECT * FROM db_yhm_city WHERE class_parent_id =169
SELECT d1.cla
- 关于监听器那些让人头疼的事
宝剑锋梅花香
画图板监听器鼠标监听器
本人初学JAVA,对于界面开发我只能说有点蛋疼,用JAVA来做界面的话确实需要一定的耐心(不使用插件,就算使用插件的话也没好多少)既然Java提供了界面开发,老师又要求做,只能硬着头皮上啦。但是监听器还真是个难懂的地方,我是上了几次课才略微搞懂了些。
- JAVA的遍历MAP
darkranger
map
Java Map遍历方式的选择
1. 阐述
对于Java中Map的遍历方式,很多文章都推荐使用entrySet,认为其比keySet的效率高很多。理由是:entrySet方法一次拿到所有key和value的集合;而keySet拿到的只是key的集合,针对每个key,都要去Map中额外查找一次value,从而降低了总体效率。那么实际情况如何呢?
为了解遍历性能的真实差距,包括在遍历ke
- POJ 2312 Battle City 优先多列+bfs
aijuans
搜索
来源:http://poj.org/problem?id=2312
题意:题目背景就是小时候玩的坦克大战,求从起点到终点最少需要多少步。已知S和R是不能走得,E是空的,可以走,B是砖,只有打掉后才可以通过。
思路:很容易看出来这是一道广搜的题目,但是因为走E和走B所需要的时间不一样,因此不能用普通的队列存点。因为对于走B来说,要先打掉砖才能通过,所以我们可以理解为走B需要两步,而走E是指需要1
- Hibernate与Jpa的关系,终于弄懂
avords
javaHibernate数据库jpa
我知道Jpa是一种规范,而Hibernate是它的一种实现。除了Hibernate,还有EclipseLink(曾经的toplink),OpenJPA等可供选择,所以使用Jpa的一个好处是,可以更换实现而不必改动太多代码。
在play中定义Model时,使用的是jpa的annotations,比如javax.persistence.Entity, Table, Column, OneToMany
- 酸爽的console.log
bee1314
console
在前端的开发中,console.log那是开发必备啊,简直直观。通过写小函数,组合大功能。更容易测试。但是在打版本时,就要删除console.log,打完版本进入开发状态又要添加,真不够爽。重复劳动太多。所以可以做些简单地封装,方便开发和上线。
/**
* log.js hufeng
* The safe wrapper for `console.xxx` functions
*
- 哈佛教授:穷人和过于忙碌的人有一个共同思维特质
bijian1013
时间管理励志人生穷人过于忙碌
一个跨学科团队今年完成了一项对资源稀缺状况下人的思维方式的研究,结论是:穷人和过于忙碌的人有一个共同思维特质,即注意力被稀缺资源过分占据,引起认知和判断力的全面下降。这项研究是心理学、行为经济学和政策研究学者协作的典范。
这个研究源于穆来纳森对自己拖延症的憎恨。他7岁从印度移民美国,很快就如鱼得水,哈佛毕业
- other operate
征客丶
OSosx
一、Mac Finder 设置排序方式,预览栏 在显示-》查看显示选项中
二、有时预览显示时,卡死在那,有可能是一些临时文件夹被删除了,如:/private/tmp[有待验证]
--------------------------------------------------------------------
若有其他凝问或文中有错误,请及时向我指出,
我好及时改正,同时也让我们一
- 【Scala五】分析Spark源代码总结的Scala语法三
bit1129
scala
1. If语句作为表达式
val properties = if (jobIdToActiveJob.contains(jobId)) {
jobIdToActiveJob(stage.jobId).properties
} else {
// this stage will be assigned to "default" po
- ZooKeeper 入门
BlueSkator
中间件zk
ZooKeeper是一个高可用的分布式数据管理与系统协调框架。基于对Paxos算法的实现,使该框架保证了分布式环境中数据的强一致性,也正是基于这样的特性,使得ZooKeeper解决很多分布式问题。网上对ZK的应用场景也有不少介绍,本文将结合作者身边的项目例子,系统地对ZK的应用场景进行一个分门归类的介绍。
值得注意的是,ZK并非天生就是为这些应用场景设计的,都是后来众多开发者根据其框架的特性,利
- MySQL取得当前时间的函数是什么 格式化日期的函数是什么
BreakingBad
mysqlDate
取得当前时间用 now() 就行。
在数据库中格式化时间 用DATE_FORMA T(date, format) .
根据格式串format 格式化日期或日期和时间值date,返回结果串。
可用DATE_FORMAT( ) 来格式化DATE 或DATETIME 值,以便得到所希望的格式。根据format字符串格式化date值:
%S, %s 两位数字形式的秒( 00,01,
- 读《研磨设计模式》-代码笔记-组合模式
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
import java.util.ArrayList;
import java.util.List;
abstract class Component {
public abstract void printStruct(Str
- 4_JAVA+Oracle面试题(有答案)
chenke
oracle
基础测试题
卷面上不能出现任何的涂写文字,所有的答案要求写在答题纸上,考卷不得带走。
选择题
1、 What will happen when you attempt to compile and run the following code? (3)
public class Static {
static {
int x = 5; // 在static内有效
}
st
- 新一代工作流系统设计目标
comsci
工作算法脚本
用户只需要给工作流系统制定若干个需求,流程系统根据需求,并结合事先输入的组织机构和权限结构,调用若干算法,在流程展示版面上面显示出系统自动生成的流程图,然后由用户根据实际情况对该流程图进行微调,直到满意为止,流程在运行过程中,系统和用户可以根据情况对流程进行实时的调整,包括拓扑结构的调整,权限的调整,内置脚本的调整。。。。。
在这个设计中,最难的地方是系统根据什么来生成流
- oracle 行链接与行迁移
daizj
oracle行迁移
表里的一行对于一个数据块太大的情况有二种(一行在一个数据块里放不下)
第一种情况:
INSERT的时候,INSERT时候行的大小就超一个块的大小。Oracle把这行的数据存储在一连串的数据块里(Oracle Stores the data for the row in a chain of data blocks),这种情况称为行链接(Row Chain),一般不可避免(除非使用更大的数据
- [JShop]开源电子商务系统jshop的系统缓存实现
dinguangx
jshop电子商务
前言
jeeshop中通过SystemManager管理了大量的缓存数据,来提升系统的性能,但这些缓存数据全部都是存放于内存中的,无法满足特定场景的数据更新(如集群环境)。JShop对jeeshop的缓存机制进行了扩展,提供CacheProvider来辅助SystemManager管理这些缓存数据,通过CacheProvider,可以把缓存存放在内存,ehcache,redis,memcache
- 初三全学年难记忆单词
dcj3sjt126com
englishword
several 儿子;若干
shelf 架子
knowledge 知识;学问
librarian 图书管理员
abroad 到国外,在国外
surf 冲浪
wave 浪;波浪
twice 两次;两倍
describe 描写;叙述
especially 特别;尤其
attract 吸引
prize 奖品;奖赏
competition 比赛;竞争
event 大事;事件
O
- sphinx实践
dcj3sjt126com
sphinx
安装参考地址:http://briansnelson.com/How_to_install_Sphinx_on_Centos_Server
yum install sphinx
如果失败的话使用下面的方式安装
wget http://sphinxsearch.com/files/sphinx-2.2.9-1.rhel6.x86_64.rpm
yum loca
- JPA之JPQL(三)
frank1234
ormjpaJPQL
1 什么是JPQL
JPQL是Java Persistence Query Language的简称,可以看成是JPA中的HQL, JPQL支持各种复杂查询。
2 检索单个对象
@Test
public void querySingleObject1() {
Query query = em.createQuery("sele
- Remove Duplicates from Sorted Array II
hcx2013
remove
Follow up for "Remove Duplicates":What if duplicates are allowed at most twice?
For example,Given sorted array nums = [1,1,1,2,2,3],
Your function should return length
- Spring4新特性——Groovy Bean定义DSL
jinnianshilongnian
spring 4
Spring4新特性——泛型限定式依赖注入
Spring4新特性——核心容器的其他改进
Spring4新特性——Web开发的增强
Spring4新特性——集成Bean Validation 1.1(JSR-349)到SpringMVC
Spring4新特性——Groovy Bean定义DSL
Spring4新特性——更好的Java泛型操作API
Spring4新
- CentOS安装Mysql5.5
liuxingguome
centos
CentOS下以RPM方式安装MySQL5.5
首先卸载系统自带Mysql:
yum remove mysql mysql-server mysql-libs compat-mysql51
rm -rf /var/lib/mysql
rm /etc/my.cnf
查看是否还有mysql软件:
rpm -qa|grep mysql
去http://dev.mysql.c
- 第14章 工具函数(下)
onestopweb
函数
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
- POJ 1050
SaraWon
二维数组子矩阵最大和
POJ ACM第1050题的详细描述,请参照
http://acm.pku.edu.cn/JudgeOnline/problem?id=1050
题目意思:
给定包含有正负整型的二维数组,找出所有子矩阵的和的最大值。
如二维数组
0 -2 -7 0
9 2 -6 2
-4 1 -4 1
-1 8 0 -2
中和最大的子矩阵是
9 2
-4 1
-1 8
且最大和是15
- [5]设计模式——单例模式
tsface
java单例设计模式虚拟机
单例模式:保证一个类仅有一个实例,并提供一个访问它的全局访问点
安全的单例模式:
/*
* @(#)Singleton.java 2014-8-1
*
* Copyright 2014 XXXX, Inc. All rights reserved.
*/
package com.fiberhome.singleton;
- Java8全新打造,英语学习supertool
yangshangchuan
javasuperword闭包java8函数式编程
superword是一个Java实现的英文单词分析软件,主要研究英语单词音近形似转化规律、前缀后缀规律、词之间的相似性规律等等。Clean code、Fluent style、Java8 feature: Lambdas, Streams and Functional-style Programming。
升学考试、工作求职、充电提高,都少不了英语的身影,英语对我们来说实在太重要