摘要:
var element = new Image(); Object.defineProperty(element, "id", { get: function () { debugger; }, }); requestAnimationFrame(function check() { console 阅读全文
摘要:
使用创建style的方式 btn.addEventListener("click", async () => { const ns = document.createElement("style"); ns.textContent = ` button { color: red; } `; docu 阅读全文
摘要:
在表单提交前修改数据,此事件在submit之后 f1.addEventListener("formdata", (e) => { e.formData.append("phone", "xxx"); }) 阅读全文
摘要:
btn.addEventListener("click", async () => { try { const state = await Notification.requestPermission(); if (state !== "granted") { // Need to request 阅读全文
摘要:
let lock; btn.addEventListener("click", async () => { try { if (lock) { lock.release(); return; } lock = await navigator.wakeLock.request("screen"); l 阅读全文
摘要:
使用android studio打开/example/android 文件即可 阅读全文
摘要:
选择文件,获取文件句柄 btn.addEventListener("click", async (e) => { try { const hFiles = await window.showOpenFilePicker({ types: [ { description: "文本文件", accept 阅读全文
摘要:
function hookSend(hook) { if (!XMLHttpRequest.prototype._oldSend) XMLHttpRequest.prototype._oldSend = XMLHttpRequest.prototype.send; XMLHttpRequest.pr 阅读全文
摘要:
dependencies: path: sqflite: sqflite_common_ffi: import 'dart:io'; import 'package:flutter/material.dart'; import 'package:sqflite_common_ffi/sqflite_ 阅读全文
摘要:
import 'package:dart_printf/dart_printf.dart'; import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWi 阅读全文