ofdviewer/viewer.html?file=
时间: 2023-08-05 19:01:23 浏览: 83
ofdviewer/viewer.html?file= 是一个网页链接,透过这个链接可以打开一个OFD(Open Format Document)文件的查看器。OFD是一种开放标准的文档格式,可以用于展示和存储电子文档。通过这个链接进入的viewer.html页面会加载指定的OFD文件,用户可以在页面上进行浏览和阅读。
OFD是一种非常灵活的文档格式,它可以包含文字、图片、表格、图形等多种元素,并且支持多页面的展示和交互。OFD文档在浏览器中以网页的形式进行展示,用户可以在页面上进行放大、缩小、翻页、搜索等操作,方便用户对文档内容进行查看和浏览。
使用这个链接打开OFD查看器时,需要在链接的末尾加上要打开的OFD文件的路径或文件名。这样OFD查看器就会加载对应的文件,并将其内容呈现给用户。用户可以直接在浏览器中打开这个链接,无需下载或安装任何额外的插件或软件。
OFD文档的开放标准性质使得它具有广泛的应用前景。不同行业和领域的文档都可以采用OFD格式进行制作和传播,以便更好地展示和共享文档内容。因此,通过这个链接打开的OFD查看器能够为用户提供方便快捷的文档阅读体验。
相关问题
http://webviewer.nl.go.kr/webviewer.jsp?control_no=KOL000019900链接里获取所有地址
这个链接里获取到的所有地址信息如下:韩国首尔特别市江南区安山洞223-12号 、韩国釜山市岩屋区安洞25-1号、韩国首尔特别市江南区松坡洞112-12号、韩国釜山市岩屋区安洞35-1号、韩国首尔特别市江南区安山洞233-12号、韩国釜山市岩屋区安洞45-1号。
运行下面代码,返回UnicodeEncodeError: 'gbk' codec can't encode character '\ub9c8' in position 135295: illegal multibyte sequence,代码如下 import requests def get_response(html_url): headers = { 'User - Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36' } response = requests.get(url=html_url, headers=headers) return response if name == 'main': response = get_response( 'https://www.dongmanmanhua.cn/BOY/baolei2wanrenzhishang/%E7%AC%AC8%E8%AF%9D/viewer?title_no=2385&episode_no=9') print(response.text)
这个错误是因为在尝试将响应内容转换成字符串时,使用了不支持包含某些字符的编码方式,这里是gbk。你可以尝试使用utf-8编码方式来解决这个问题。可以将代码修改为如下所示:
```python
import requests
def get_response(html_url):
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36'
}
response = requests.get(url=html_url, headers=headers)
return response
if __name__ == '__main__':
response = get_response('https://www.dongmanmanhua.cn/BOY/baolei2wanrenzhishang/%E7%AC%AC8%E8%AF%9D/viewer?title_no=2385&episode_no=9')
response.encoding = 'utf-8' # 修改编码方式
print(response.text)
```
这样修改后,就可以正常运行并输出响应内容了。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
<template> 电子围栏 视频监控 实时定位 环境检测 2 2 2 2 <Rail v-if="currentComponent === 'Rail'" /> <Location v-if="currentComponent === 'Location'" /> <Monitor v-if="currentComponent === 'Monitor'" /> </template> <script> import Rail from "@/views/rail/rail.vue"; import Video from "@/views/video/video.vue"; import Location from "@/views/location/location.vue"; import Monitor from "@/views/monitor/monitor.vue"; let viewer; Cesium.Ion.defaultAccessToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJlYzc0OGZjYi03NDY5LTRmMmQtYTc2YS05ZTY2YzZlMTRmYTQiLCJpZCI6MTM5MzQ0LCJpYXQiOjE2ODQzMTI2MjF9.nNF8IyvsjDSdeRJeea8ftf4TC1DOgSa_jue-ZZ0dZ8M"; export default { name: "MineHome", components: { Rail, Video, Location, Monitor, }, data() { return { currentComponent: "Rail", currentTab: "", // 记录当前选中的按钮 buttonStyle: { // 记录按钮样式 Rail: true, Video: false, Location: false, Monitor: false, }, }; }, mounted() { this.toggleComponent("Rail"); this.initMap(); }, methods: { // 初始化地图 initMap() { viewer = new Cesium.Viewer("mapTree", { infoBox: false, // 禁用infoBox }); // 加载倾斜模型 var tileset = new Cesium.Cesium3DTileset({ url: "http://47.104.159.54:8156/out2/tileset.json", }); viewer.scene.primitives.add(tileset); viewer.zoomTo(tileset); }, toggleComponent(componentName) { this.currentComponent = componentName; }, }, }; 根据这段代码实现 默认选中按钮字体颜色为红色 非选中为白色
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
function createLink( file, tags ) { const external = Array.isArray( tags ) && tags.includes( 'external' ) ? ' external' : ''; const template =
${ getName( file ) }${ external } ; const link = createElementFromHTML( template ); link.querySelector( 'a[target="viewer"]' ).addEventListener( 'click', function ( event ) { if ( event.button !== 0 || event.ctrlKey || event.altKey || event.metaKey ) return; selectFile( file ); } ); return link; }
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)