
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
function hexify(color) {var values = color.replace(/rgba?\(/, '').replace(/\)/, '').replace(/[\s+]/g, '').split(',');var a = parseFloat(values[3] || 1),r = Math.floor(a * parseInt(values[0]) + (1 - a)
nodejs 对于编码格式为 gb2313的网页无法正确解析,有两个解决办法,欢迎补充。1 使用 superagent-charset 插件其实 superagent-charset插件也用到了iconvLiteconst superagent = require('superagent');const charset = require('superagent-charset');charset
chrome 插件之消息通知 自有api和sessionStorage还有自定义事件chrome扩展之加载外部js到原网页中 1使用jquery的loadJs()2 使用chrome.extension.getURL
chrome 插件之消息通知 自有api和sessionStorage还有自定义事件chrome扩展之加载外部js到原网页中 1使用jquery的loadJs()2 使用chrome.extension.getURL
chrome 插件之消息通知 自有api和sessionStorage还有自定义事件chrome扩展之加载外部js到原网页中 1使用jquery的loadJs()2 使用chrome.extension.getURL
vue 方法mounted () {window.testFun = this.testFun;// 方法赋值给window},methods: {// vue内部方法testFun () {},}外部js调用<script>function test() {testFun();// 直接通过window方法去调用methods中对应方法}</script>...
1 chrome 自有api2; (function () {function ajaxEventTrigger(event) {var ajaxEvent = new CustomEvent(event, { detail: this });window.dispatchEvent(ajaxEvent);}var oldXHR = window.XMLHttpRequest;function n