怎样查找自己建设的网站,网页源代码视频下载链接,仿v2ex wordpress,国家住房建设部网站最近要现实一个在PC网页中实现点击按钮调用本地应用程序的功能 其实实现原理也非常简单#xff0c; 首先注册一个本地注册表文件#xff0c;指向本地应用程序路径 其次在网页中用js指向这个注册表文件#xff0c;就可以实现网页调用本地应用程序 Windows Registry Editor V…最近要现实一个在PC网页中实现点击按钮调用本地应用程序的功能 其实实现原理也非常简单 首先注册一个本地注册表文件指向本地应用程序路径 其次在网页中用js指向这个注册表文件就可以实现网页调用本地应用程序 Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\myprotocol]myprotocol ProtocolURL Protocol[HKEY_CLASSES_ROOT\myprotocol\DefaultIcon]D:\\Tools\\FF\\tencent\\qqmusic\\QQMusic.exe[HKEY_CLASSES_ROOT\myprotocol\shell][HKEY_CLASSES_ROOT\myprotocol\shell\open][HKEY_CLASSES_ROOT\myprotocol\shell\open\command]\D:\\Tools\\FF\\tencent\\qqmusic\\QQMusic.exe\ !DOCTYPE html
html langen
headmeta charsetUTF-8titleTitle/title
/head
body styletext-align: center;padding-top: 300px;
button onclickwindow.location.hrefmyprotocol://D:\\work\\data\\2018\\08-11\\11-16\\myprotocol.reg stylemargin: 200px auto;打开QQ音乐/button
a hrefmyprotocol://D:\work\data\2018\08-11\11-16\myprotocol.reg stylemargin: 200px auto;打开QQ音乐/a
/body
/html 转载于:https://www.cnblogs.com/zhixi/p/9969219.html