上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 40 下一页
摘要: var element = new Image(); Object.defineProperty(element, "id", { get: function () { debugger; }, }); requestAnimationFrame(function check() { console 阅读全文
posted @ 2020-10-12 15:12 Ajanuw 阅读(1161) 评论(0) 推荐(0) 编辑
摘要: 使用创建style的方式 btn.addEventListener("click", async () => { const ns = document.createElement("style"); ns.textContent = ` button { color: red; } `; docu 阅读全文
posted @ 2020-10-11 12:16 Ajanuw 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 在表单提交前修改数据,此事件在submit之后 f1.addEventListener("formdata", (e) => { e.formData.append("phone", "xxx"); }) 阅读全文
posted @ 2020-10-11 11:39 Ajanuw 阅读(529) 评论(0) 推荐(0) 编辑
摘要: btn.addEventListener("click", async () => { try { const state = await Notification.requestPermission(); if (state !== "granted") { // Need to request 阅读全文
posted @ 2020-10-11 11:07 Ajanuw 阅读(639) 评论(0) 推荐(0) 编辑
摘要: let lock; btn.addEventListener("click", async () => { try { if (lock) { lock.release(); return; } lock = await navigator.wakeLock.request("screen"); l 阅读全文
posted @ 2020-10-11 10:39 Ajanuw 阅读(595) 评论(0) 推荐(0) 编辑
摘要: 使用android studio打开/example/android 文件即可 阅读全文
posted @ 2020-10-10 15:42 Ajanuw 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 选择文件,获取文件句柄 btn.addEventListener("click", async (e) => { try { const hFiles = await window.showOpenFilePicker({ types: [ { description: "文本文件", accept 阅读全文
posted @ 2020-10-09 20:14 Ajanuw 阅读(2192) 评论(0) 推荐(1) 编辑
摘要: function hookSend(hook) { if (!XMLHttpRequest.prototype._oldSend) XMLHttpRequest.prototype._oldSend = XMLHttpRequest.prototype.send; XMLHttpRequest.pr 阅读全文
posted @ 2020-10-06 22:59 Ajanuw 阅读(444) 评论(0) 推荐(0) 编辑
摘要: dependencies: path: sqflite: sqflite_common_ffi: import 'dart:io'; import 'package:flutter/material.dart'; import 'package:sqflite_common_ffi/sqflite_ 阅读全文
posted @ 2020-10-05 18:17 Ajanuw 阅读(845) 评论(0) 推荐(0) 编辑
摘要: import 'package:dart_printf/dart_printf.dart'; import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWi 阅读全文
posted @ 2020-10-04 12:04 Ajanuw 阅读(280) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 40 下一页