如何在chrome中设置自定义协议处理程序?就像是:
myprotocol:// testfile的
我需要将此请求发送到http://example.com?query=testfile,然后将httpresponse发送到我的扩展程序.
有谁知道解决方案?我在网上找到了一个国家的选择菜单,但我需要一个API或一个数据库,每个国家/省和每个国家的主要城市.
大约需要多长时间,以及创建SHA-1数据哈希需要多少处理能力?根据原始数据大小,这有很大不同吗?生成标准HTML文件的哈希值会比字符串"blah"长得多吗?C++,Java和PHP如何在速度上进行比较?
我正在尝试构建读取一个字符串的JavaScript代码(比如英文文本的一个句子),然后输出另一串(逗号分隔的)"uncommon"字样.就像是:
var sentence="The dog ran to the other side of the field.";
var common_words="the, it is, we all, a, an, by, to, you, me, he, she, they, we, how, it, i, are, to, for, of";
Run Code Online (Sandbox Code Playgroud)
- 一些JavaScript代码 -
var uncommon_words="dog, ran, other, side, field";
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点?