推扬网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
推扬网 门户 你问我答 查看内容

智琳:getDocumentBase()是什么意思?

2020-8-11 18:12| 发布者: admin| 查看: 79| 评论: 0

摘要: 夏乾良的回答: getDocumentBase() 获取文件的基本路径 例如: getImage(getDocumentBase(),"Ex7_3.jpg");以基本路径+Ex7_3.jpg文件为基础,取得图像类iImg=getImage(getDocumentBase(),"Ex7_3.jpg");把取得 ...

夏乾良的回答:

getDocumentBase() 获取文件的基本路径 例如: getImage(getDocumentBase(),"Ex7_3.jpg");以基本路径+Ex7_3.jpg文件为基础,取得图像类iImg=getImage(getDocumentBase(),"Ex7_3.jpg");把取得的图像类赋给变量iImg

孙传辉的回答:

getDocumentBase() 获取文件的基本路径 例如: getImage(getDocumentBase(),"Ex7_3.jpg");以基本路径+Ex7_3.jpg文件为基础,取得图像类iImg=getImage(getDocumentBase(),"Ex7_3.jpg");把取得的图像类赋给变量iImg

王小云的回答:

applet类中getDocumentBase()和getCodeBase()的区别 Applet类中提供了这2种方法帮我门获取URL对象,其中getDocumentBase()方法返回URL对象,代表了包含Applet的HTML文件所在目录,而getCodeBase()方法返回的URL对象代表了applet文件即.class文件所在目录。它根据HTML文件的"Applet"标记中的CODEBASE属性值计算出来,若该属性没有设置则返回该HTML文件所在目录

张文杰的回答:

Applet.getDocumentBase(); public URL getDocumentBase() Gets the URL of the document in which this applet is embedded. For example, suppose an applet is contained within the document: http://java.sun.com/products/jdk/1.2/index.html The document base is: http://java.sun.com/products/jdk/1.2/index.html

佳嘉乐的回答:

Applet.getDocumentBase(); public URL getDocumentBase() Gets the URL of the document in which this applet is embedded. For example, suppose an applet is contained within the document: http://java.sun.com/products/jdk/1.2/index.html The document base is: http://java.sun.com/products/jdk/1.2/index.html


鲜花

握手

雷人

路过

鸡蛋

最新评论

热门推荐
最新资讯

广告服务|投稿要求|禁言标准|版权说明|免责声明|手机版|小黑屋|推扬网 ( 粤ICP备18134897号 )|网站地图 | 邮箱:vayae@hotmail.com

GMT+8, 2025-5-1 08:46 , Processed in 0.058900 second(s), 29 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

返回顶部