- 1、本文档共19页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
DWR中的util.js的使用
一下的程序都是在引用util.js文件的情况下运行的
?
处理列表:处理列表--字符串数组
Html代码 ?
%@?page?language=java?import=java.util.*?pageEncoding=UTF-8%??
% ??
String?path?=?request.getContextPath(); ??
String?basePath?=?request.getScheme()+://+request.getServerName()+:+request.getServerPort()+path+/; ??
%??
??
!DOCTYPE?HTML?PUBLIC?-//W3C//DTD?HTML?4.01?Transitional//EN??
html??
????head??
????????base?href=%=basePath%??
??
????????title处理列表--字符串数组/title??
??
????????meta?http-equiv=pragma?content=no-cache??
????????meta?http-equiv=cache-control?content=no-cache??
????????meta?http-equiv=expires?content=0??
????????meta?http-equiv=keywords?content=keyword1,keyword2,keyword3??
????????meta?http-equiv=description?content=This?is?my?page??
????????script?type=text/javascript?src=js/util.js/script??
????????script?type=text/javascript??
????????????var?strArray?=?[请选择一本书,Java,Hibernate,Spring,]; ??
????????????function?add(){ ??
????????????????dwr.util.addOptions(test,strArray); ??
????????????} ??
????????????function?del(){ ??
????????????????dwr.util.removeAllOptions(test); ??
????????????} ??
????????/script??
????/head??
??
????body??
????????select?id=test/select??
????????input?type=button?value=添加选项?onclick=add();??
????????input?type=button?value=删除选项?onclick=del();??
????/body??
/html??
%@ page language=java import=java.util.* pageEncoding=UTF-8%
%
String path = request.getContextPath();
String basePath = request.getScheme()+://+request.getServerName()+:+request.getServerPort()+path+/;
%
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
base href=%=basePath%
title处理列表--字符串数组/title
meta http-equiv=pragma content=no-cache
meta http-equiv=cache-control content=no-cache
meta http-equiv=expires content=0
meta http-equiv=keywords content=keyword1,keyword2,keyword3
meta http-equiv=description content=This is my page
script type=text/javascript src=js/util.js/script
script type=text/javascript
var strArray = [请选择一本书,Java,Hibernate,Spring,];
function add(){
您可能关注的文档
- Design and Analysis Approach for Factorials with Observable Noise Factors in Robust Design.pdf
- Design and Airgap Flux Density Calculation of DualRotor PermanentMagnet Wind Generator.pdf
- Design and Analysis of devrandom, a Pseudorandom Number Generator.pdf
- Design and analysis of a noncollinear acoustooptic tunable filter.pdf
- Design and Analysis of a HighSpeed Brushless DC Motor.pdf
- Design and Analysis of Novel Quadrature Hybrid with Compact Lumped Elements.pdf
- Design and application of the technical training set for plc based power supply unit developed for.doc
- Design and construction of a Formula SAE racecar in a teaching and research framework.pdf
- Design and Calibration of a Cryogenic Blackbody Calibrator at Centimeter Wavelengths.pdf
- Design and Construction of a machinetractable MalayEnglish Lexicon.pdf
- 2025江浙沪居民睡眠健康小调研报告.pdf
- 毕业论文的开题报告范文.docx
- 团委活动方案(拓展).docx
- 汽车智能驾驶行业深度报告:端到端与AI共振,智驾平权开启新时代.pdf
- 小核酸行业深度:技术平台和适应症不断验证,迎来销售和临床密集兑现期-华福证券-2025.3.31-65页.docx
- 医药生物行业医疗AI专题报告二多组学篇AI技术驱动精准诊断实现重要突破-25031440页.docx
- CXO行业系列报告三寒冬已过行业需求逐步回暖-25031430页.docx
- 全国租赁市场报告2025年3月_可搜索.pdf
- 玩具行业“情绪经济”专题:创新玩法+IP赋能,重新定义玩具-华鑫证券-2025.docx
- 医疗保健行业PCAB抑制剂药物深度报告抑酸药物市场空间广阔PCAB抑制剂大有可为-25.pdf
文档评论(0)