JS focus方法.doc

JS focus方法

1 domain 属性可返回下载当前文档的服务器域名。 语法 document.domain 说明 该属性是一个只读的字符串,包含了载入当前文档的 web 服务器的主机名。 提示和注释 提示:domain 属性可以解决因同源安全策略带来的不同文档的属性共享问题。 点击这里,了解同源安全策略的详细信息。 实例 html body The domain name for this document is: script type=text/javascript document.write(document.domain) /script /body /html 2 drawImage() 方法绘制一幅图像。 语法 drawImage(image, x, y) drawImage(image, x, y, width, height) drawImage(image, sourceX, sourceY, sourceWidth, sourceHeight, destX, destY, destWidth, destHeight) 参数 参数 描述 image 所要绘制的图像。 这必须是表示 img 标记或者屏幕外图像的 Image 对象,或者是 Canvas 元素。 x, y 要绘制的图像的左上角的位置。 width, height 图像所应该绘制的尺寸。指

文档评论(0)

1亿VIP精品文档

相关文档