- 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
- rust的指针作为函数返回值是直接传递,还是先销毁后创建?
wudixiaotie
返回值
这是我自己想到的问题,结果去知呼提问,还没等别人回答, 我自己就想到方法实验了。。
fn main() {
let mut a = 34;
println!("a's addr:{:p}", &a);
let p = &mut a;
println!("p's addr:{:p}", &a
- java编程思想 -- 数据的初始化
百合不是茶
java数据的初始化
1.使用构造器确保数据初始化
/*
*在ReckInitDemo类中创建Reck的对象
*/
public class ReckInitDemo {
public static void main(String[] args) {
//创建Reck对象
new Reck();
}
}
- [航天与宇宙]为什么发射和回收航天器有档期
comsci
地球的大气层中有一个时空屏蔽层,这个层次会不定时的出现,如果该时空屏蔽层出现,那么将导致外层空间进入的任何物体被摧毁,而从地面发射到太空的飞船也将被摧毁...
所以,航天发射和飞船回收都需要等待这个时空屏蔽层消失之后,再进行
&
- linux下批量替换文件内容
商人shang
linux替换
1、网络上现成的资料
格式: sed -i "s/查找字段/替换字段/g" `grep 查找字段 -rl 路径`
linux sed 批量替换多个文件中的字符串
sed -i "s/oldstring/newstring/g" `grep oldstring -rl yourdir`
例如:替换/home下所有文件中的www.admi
- 网页在线天气预报
oloz
天气预报
网页在线调用天气预报
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transit
- SpringMVC和Struts2比较
杨白白
springMVC
1. 入口
spring mvc的入口是servlet,而struts2是filter(这里要指出,filter和servlet是不同的。以前认为filter是servlet的一种特殊),这样就导致了二者的机制不同,这里就牵涉到servlet和filter的区别了。
参见:http://blog.csdn.net/zs15932616453/article/details/8832343
2
- refuse copy, lazy girl!
小桔子
copy
妹妹坐船头啊啊啊啊!都打算一点点琢磨呢。文字编辑也写了基本功能了。。今天查资料,结果查到了人家写得完完整整的。我清楚的认识到:
1.那是我自己觉得写不出的高度
2.如果直接拿来用,很快就能解决问题
3.然后就是抄咩~~
4.肿么可以这样子,都不想写了今儿个,留着作参考吧!拒绝大抄特抄,慢慢一点点写!
- apache与php整合
aichenglong
php apache web
一 apache web服务器
1 apeche web服务器的安装
1)下载Apache web服务器
2)配置域名(如果需要使用要在DNS上注册)
3)测试安装访问http://localhost/验证是否安装成功
2 apache管理
1)service.msc进行图形化管理
2)命令管理,配
- Maven常用内置变量
AILIKES
maven
Built-in properties
${basedir} represents the directory containing pom.xml
${version} equivalent to ${project.version} (deprecated: ${pom.version})
Pom/Project properties
Al
- java的类和对象
百合不是茶
JAVA面向对象 类 对象
java中的类:
java是面向对象的语言,解决问题的核心就是将问题看成是一个类,使用类来解决
java使用 class 类名 来创建类 ,在Java中类名要求和构造方法,Java的文件名是一样的
创建一个A类:
class A{
}
java中的类:将某两个事物有联系的属性包装在一个类中,再通
- JS控制页面输入框为只读
bijian1013
JavaScript
在WEB应用开发当中,增、删除、改、查功能必不可少,为了减少以后维护的工作量,我们一般都只做一份页面,通过传入的参数控制其是新增、修改或者查看。而修改时需将待修改的信息从后台取到并显示出来,实际上就是查看的过程,唯一的区别是修改时,页面上所有的信息能修改,而查看页面上的信息不能修改。因此完全可以将其合并,但通过前端JS将查看页面的所有信息控制为只读,在信息量非常大时,就比较麻烦。
- AngularJS与服务器交互
bijian1013
JavaScriptAngularJS$http
对于AJAX应用(使用XMLHttpRequests)来说,向服务器发起请求的传统方式是:获取一个XMLHttpRequest对象的引用、发起请求、读取响应、检查状态码,最后处理服务端的响应。整个过程示例如下:
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange
- [Maven学习笔记八]Maven常用插件应用
bit1129
maven
常用插件及其用法位于:http://maven.apache.org/plugins/
1. Jetty server plugin
2. Dependency copy plugin
3. Surefire Test plugin
4. Uber jar plugin
1. Jetty Pl
- 【Hive六】Hive用户自定义函数(UDF)
bit1129
自定义函数
1. 什么是Hive UDF
Hive是基于Hadoop中的MapReduce,提供HQL查询的数据仓库。Hive是一个很开放的系统,很多内容都支持用户定制,包括:
文件格式:Text File,Sequence File
内存中的数据格式: Java Integer/String, Hadoop IntWritable/Text
用户提供的 map/reduce 脚本:不管什么
- 杀掉nginx进程后丢失nginx.pid,如何重新启动nginx
ronin47
nginx 重启 pid丢失
nginx进程被意外关闭,使用nginx -s reload重启时报如下错误:nginx: [error] open() “/var/run/nginx.pid” failed (2: No such file or directory)这是因为nginx进程被杀死后pid丢失了,下一次再开启nginx -s reload时无法启动解决办法:nginx -s reload 只是用来告诉运行中的ng
- UI设计中我们为什么需要设计动效
brotherlamp
UIui教程ui视频ui资料ui自学
随着国际大品牌苹果和谷歌的引领,最近越来越多的国内公司开始关注动效设计了,越来越多的团队已经意识到动效在产品用户体验中的重要性了,更多的UI设计师们也开始投身动效设计领域。
但是说到底,我们到底为什么需要动效设计?或者说我们到底需要什么样的动效?做动效设计也有段时间了,于是尝试用一些案例,从产品本身出发来说说我所思考的动效设计。
一、加强体验舒适度
嗯,就是让用户更加爽更加爽的用你的产品。
- Spring中JdbcDaoSupport的DataSource注入问题
bylijinnan
javaspring
参考以下两篇文章:
http://www.mkyong.com/spring/spring-jdbctemplate-jdbcdaosupport-examples/
http://stackoverflow.com/questions/4762229/spring-ldap-invoking-setter-methods-in-beans-configuration
Sprin
- 数据库连接池的工作原理
chicony
数据库连接池
随着信息技术的高速发展与广泛应用,数据库技术在信息技术领域中的位置越来越重要,尤其是网络应用和电子商务的迅速发展,都需要数据库技术支持动 态Web站点的运行,而传统的开发模式是:首先在主程序(如Servlet、Beans)中建立数据库连接;然后进行SQL操作,对数据库中的对象进行查 询、修改和删除等操作;最后断开数据库连接。使用这种开发模式,对
- java 关键字
CrazyMizzz
java
关键字是事先定义的,有特别意义的标识符,有时又叫保留字。对于保留字,用户只能按照系统规定的方式使用,不能自行定义。
Java中的关键字按功能主要可以分为以下几类:
(1)访问修饰符
public,private,protected
p
- Hive中的排序语法
daizj
排序hiveorder byDISTRIBUTE BYsort by
Hive中的排序语法 2014.06.22 ORDER BY
hive中的ORDER BY语句和关系数据库中的sql语法相似。他会对查询结果做全局排序,这意味着所有的数据会传送到一个Reduce任务上,这样会导致在大数量的情况下,花费大量时间。
与数据库中 ORDER BY 的区别在于在hive.mapred.mode = strict模式下,必须指定 limit 否则执行会报错。
- 单态设计模式
dcj3sjt126com
设计模式
单例模式(Singleton)用于为一个类生成一个唯一的对象。最常用的地方是数据库连接。 使用单例模式生成一个对象后,该对象可以被其它众多对象所使用。
<?phpclass Example{ // 保存类实例在此属性中 private static&
- svn locked
dcj3sjt126com
Lock
post-commit hook failed (exit code 1) with output:
svn: E155004: Working copy 'D:\xx\xxx' locked
svn: E200031: sqlite: attempt to write a readonly database
svn: E200031: sqlite: attempt to write a
- ARM寄存器学习
e200702084
数据结构C++cC#F#
无论是学习哪一种处理器,首先需要明确的就是这种处理器的寄存器以及工作模式。
ARM有37个寄存器,其中31个通用寄存器,6个状态寄存器。
1、不分组寄存器(R0-R7)
不分组也就是说说,在所有的处理器模式下指的都时同一物理寄存器。在异常中断造成处理器模式切换时,由于不同的处理器模式使用一个名字相同的物理寄存器,就是
- 常用编码资料
gengzg
编码
List<UserInfo> list=GetUserS.GetUserList(11);
String json=JSON.toJSONString(list);
HashMap<Object,Object> hs=new HashMap<Object, Object>();
for(int i=0;i<10;i++)
{
- 进程 vs. 线程
hongtoushizi
线程linux进程
我们介绍了多进程和多线程,这是实现多任务最常用的两种方式。现在,我们来讨论一下这两种方式的优缺点。
首先,要实现多任务,通常我们会设计Master-Worker模式,Master负责分配任务,Worker负责执行任务,因此,多任务环境下,通常是一个Master,多个Worker。
如果用多进程实现Master-Worker,主进程就是Master,其他进程就是Worker。
如果用多线程实现
- Linux定时Job:crontab -e 与 /etc/crontab 的区别
Josh_Persistence
linuxcrontab
一、linux中的crotab中的指定的时间只有5个部分:* * * * *
分别表示:分钟,小时,日,月,星期,具体说来:
第一段 代表分钟 0—59
第二段 代表小时 0—23
第三段 代表日期 1—31
第四段 代表月份 1—12
第五段 代表星期几,0代表星期日 0—6
如:
*/1 * * * * 每分钟执行一次。
*
- KMP算法详解
hm4123660
数据结构C++算法字符串KMP
字符串模式匹配我们相信大家都有遇过,然而我们也习惯用简单匹配法(即Brute-Force算法),其基本思路就是一个个逐一对比下去,这也是我们大家熟知的方法,然而这种算法的效率并不高,但利于理解。
假设主串s="ababcabcacbab",模式串为t="
- 枚举类型的单例模式
zhb8015
单例模式
E.编写一个包含单个元素的枚举类型[极推荐]。代码如下:
public enum MaYun {himself; //定义一个枚举的元素,就代表MaYun的一个实例private String anotherField;MaYun() {//MaYun诞生要做的事情//这个方法也可以去掉。将构造时候需要做的事情放在instance赋值的时候:/** himself = MaYun() {*
- Kafka+Storm+HDFS
ssydxa219
storm
cd /myhome/usr/stormbin/storm nimbus &bin/storm supervisor &bin/storm ui &Kafka+Storm+HDFS整合实践kafka_2.9.2-0.8.1.1.tgzapache-storm-0.9.2-incubating.tar.gzKafka安装配置我们使用3台机器搭建Kafk
- Java获取本地服务器的IP
中华好儿孙
javaWeb获取服务器ip地址
System.out.println("getRequestURL:"+request.getRequestURL());
System.out.println("getLocalAddr:"+request.getLocalAddr());
System.out.println("getLocalPort:&quo