Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
incu-webview
Advanced tools
版本一定要用@latest,确保每次构建都能拿到最新版
npm i incu-webview@latest --save
ES6:
import Miracle from 'incu-webview'
浏览器:
<script src="node_modules/incu-webview/miracle.min.js"></script>
<script>
console.log(window.Miracle)
</script>
chrome://inspect
调试板块:
Demo:
import Miracle from 'incu-webview'
const isApp = Miracle.isApp()
console.log(isApp)
用于监听App的加载,加载完成后会调用回调。
除 isApp 外,其他所有Api需在AppReady后才能调用
参数与类型
onAppReady: (callback?: Function) => void
Demo:
import Miracle from 'incu-webview'
const onAppReady = Miracle.onAppReady(() => {
console.log(Miracle.getData())
})
获取App端的数据,具体格式,看数据吧……,请灵活使用该方法 =。=
Demo:
import Miracle from 'incu-webview'
console.log(Miracle.getData())
安全起见,具体能调用的方法查看 iNCU 的文档
参数与类型:
call: (
baseClass: string,
method: string,
params: any,
success?: Function,
fail?: Function
) => void
Demo:
import Miracle from 'incu-webview'
Miracle.call('router', 'refresh', {
title: 'Hello World'
}, () => {
console.log('set Title success')
}, () => {
console.log('set Title failed')
})
FAQs
iNCU Webview 库,用于实现一些与原生端的交互操作。
We found that incu-webview demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.