01 2022 档案

摘要:public class Temp { public static void print(int num) { for (int i = 31; i >= 0; i--) { System.out.print(((num & (1 << i)) == 0 ? "0" : "1")); } Syste 阅读全文
posted @ 2022-01-22 17:42 AngDH 阅读(62) 评论(0) 推荐(0) 编辑
摘要:对节点的属性们做浅层检查: BinaryExpression(path) { if (t.isIdentifier(path.node.left, { name: "n" })) { // ... } } 功能上等价于: BinaryExpression(path) { if ( path.node 阅读全文
posted @ 2022-01-17 20:32 AngDH 阅读(25) 评论(0) 推荐(0) 编辑
摘要:var _appendChild = Node.prototype.appendChild; Node.prototype.appendChild = function(){ console.log("Hook appendChild"); return _appendChild(); }; Nod 阅读全文
posted @ 2022-01-09 13:38 AngDH 阅读(115) 评论(0) 推荐(0) 编辑
摘要:const fs = require('fs'); const { parse } = require("@babel/parser"); const traverse = require("@babel/traverse").default; const types = require("@bab 阅读全文
posted @ 2022-01-09 13:21 AngDH 阅读(76) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/a3857fa5c899 const fs = require('fs'); const { parse } = require("@babel/parser"); const traverse = require("@babel/traverse 阅读全文
posted @ 2022-01-07 21:24 AngDH 阅读(337) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/a3857fa5c899 const fs = require('fs'); const { parse } = require("@babel/parser"); const traverse = require("@babel/traverse 阅读全文
posted @ 2022-01-07 20:33 AngDH 阅读(60) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/a3857fa5c899 const fs = require('fs'); const { parse } = require("@babel/parser"); const traverse = require("@babel/traverse 阅读全文
posted @ 2022-01-07 20:08 AngDH 阅读(45) 评论(0) 推荐(0) 编辑
摘要:const fs = require('fs'); const {parse} = require("@babel/parser"); const traverse = require("@babel/traverse").default; const t = require("@babel/typ 阅读全文
posted @ 2022-01-07 19:24 AngDH 阅读(79) 评论(0) 推荐(0) 编辑
摘要:逆向与采集 https://mp.weixin.qq.com/s/2YJwPFaDik0ITZAw5aDSAQ https://www.jianshu.com/p/a3857fa5c899 中文手册 https://github.com/jamiebuilds/babel-handbook/blob 阅读全文
posted @ 2022-01-06 21:41 AngDH 阅读(32) 评论(0) 推荐(0) 编辑
摘要:// 将js代码转换成AST const { parse } = require("@babel/parser"); // 用来遍历AST中的节点 const traverse = require("@babel/traverse").default; // AST转换成js const gener 阅读全文
posted @ 2022-01-06 21:37 AngDH 阅读(73) 评论(0) 推荐(0) 编辑
摘要:https://mp.weixin.qq.com/s?__biz=MzkzNDIzMjg3NQ==&mid=2247483791&idx=1&sn=e33b9e546778c4fb29372f527630267b&chksm=c24117cbf5369edd8aa101ee305bbd2719db4 阅读全文
posted @ 2022-01-06 21:03 AngDH 阅读(1167) 评论(0) 推荐(0) 编辑
摘要:https://mp.weixin.qq.com/s/r55lQeLqqwkDk89z4oX6oQ 监听一个对象属性的变化 a = "123456"; data = a; Object.defineProperty(window, "a", { get() { console.log("取值a的值: 阅读全文
posted @ 2022-01-06 12:56 AngDH 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-01-04 19:34 AngDH 阅读(36) 评论(0) 推荐(0) 编辑
摘要:const parser = require("@babel/parser"); const traverse = require("@babel/traverse").default; // 将js代码转换成AST // const { parse } = require("@babel/pars 阅读全文
posted @ 2022-01-02 18:15 AngDH 阅读(85) 评论(0) 推荐(0) 编辑
摘要:const parser = require("@babel/parser"); const traverse = require("@babel/traverse").default; // 将js代码转换成AST // const { parse } = require("@babel/pars 阅读全文
posted @ 2022-01-02 17:36 AngDH 阅读(69) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示