博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
前端调用本地应用
阅读量:4605 次
发布时间:2019-06-09

本文共 700 字,大约阅读时间需要 2 分钟。

创建注册表文件: openFiddler.reg

存放在E:\test\openFiddler.reg

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\protocolName]

@="protocolName Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\protocolName\DefaultIcon]
@="E:\\Fiddler\\Fiddler.exe"

E:\Fiddler

[HKEY_CLASSES_ROOT\protocolName\shell]

@=""

[HKEY_CLASSES_ROOT\protocolName\shell\open]

@=""

[HKEY_CLASSES_ROOT\protocolName\shell\open\command]

@="\"E:\\Fiddler\\Fiddler.exe\" "

index.html内容

<button οnclick="window.location.href='myprotocol://E:\\test\\openFiddler.reg'">打开Fiddler</button>
<a href="myprotocol://E:\test\openFiddler.reg">打开Fiddler2</a>
 
先进入E:\test中执行一次注册表文件,之后就可以点击链接或者按钮调用本地应用

转载于:https://www.cnblogs.com/W-it-H-ou-T/p/11127801.html

你可能感兴趣的文章
各地IT薪资待遇讨论
查看>>
splay入门
查看>>
带CookieContainer进行post
查看>>
C语言学习笔记--字符串
查看>>
CSS-上下文选择器
查看>>
ionic repeat 重复最后一个时要执行某个函数
查看>>
1.初识代码审计-基础
查看>>
APC注入
查看>>
No enclosing instance of type Hello is accessible
查看>>
windows SVN搭建
查看>>
Scrum立会报告+燃尽图(Beta阶段第二周第二次)
查看>>
动态代理
查看>>
WCF 中,出现The remote server returned an unexpected response: (400) Bad Request.
查看>>
缓存概要
查看>>
vue项目中使用百度地图的方法
查看>>
[Vue-rx] Stream an API using RxJS into a Vue.js Template
查看>>
[Javascript] lodash: memoize() to improve the profermence
查看>>
手写符合Promise/A+规范的Promise
查看>>
Python time和datetime模块
查看>>
JPA、JTA、XA相关索引
查看>>