上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 79 下一页
摘要: 基本地址 <script src="https://d3js.org/d3.v6.min.js"></script> Github: https://github.com/d3/d3 介绍 D3的主要功能是基于数据来变化DOM文档,比如根据输入的信息来快速生成/变更一个html中的table。或者用 阅读全文
posted @ 2020-11-06 20:23 雪溯 阅读(1399) 评论(0) 推荐(1) 编辑
摘要: Chaining getElementById getElementById本身无法连续使用,建议用querySeletor替换掉 Element.prototype.getElementById = function(id) { return this.querySelector("#"+id); 阅读全文
posted @ 2020-11-04 17:03 雪溯 阅读(90) 评论(0) 推荐(0) 编辑
摘要: nohup 当用户退出终端时,对应的命令不退出 阅读全文
posted @ 2020-11-04 10:26 雪溯 阅读(58) 评论(0) 推荐(0) 编辑
摘要: Source code: https://github.com/ChijinZ/VisFuzz Abstract 传统上模糊测试的一个瓶颈在于很难覆盖到被复杂的条件-比如magic number, 嵌套的条件所引导的程序支线,为此人们提出了白盒测试,然而即使这样,对复杂的条件的支持还是不够,比如ar 阅读全文
posted @ 2020-10-31 19:50 雪溯 阅读(246) 评论(6) 推荐(0) 编辑
摘要: Reference Tufail Muhammad , Zahid Halim , Majid Ali Khan , Visualizing Trace of Java Collection APIs by Dynamic Bytecode Instrumentation, Journal of V 阅读全文
posted @ 2020-10-28 21:26 雪溯 阅读(70) 评论(0) 推荐(0) 编辑
摘要: Function Pointers fn类型与Fn特性不一样,fn被称为function pointer,使用方法和Fn相似。但是在与C的FFI交互的时候,只能用fn。 fn add_one(x: i32) -> i32 { x + 1 } fn do_twice(f: fn(i32) -> i32 阅读全文
posted @ 2020-10-28 01:46 雪溯 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Fully Qualified Syntax 当多个traits和struct具有相同的方法名时,默认会调用直接实现给这个struct的方法,要调用Trait中重名的方法,最好直接使用traitname::method(...)的方式。尤其是如果只是trait中associated function 阅读全文
posted @ 2020-10-28 01:08 雪溯 阅读(254) 评论(0) 推荐(0) 编辑
摘要: Placeholder Types 在trait定义中,可以使用Associated types在定义中放一些type placeholder,并用这些type placeholder作为返回值,参数等描述类型之间的关系。接着,trait的实现中就可以将这些type placehold设置为具体类型 阅读全文
posted @ 2020-10-28 00:38 雪溯 阅读(74) 评论(0) 推荐(0) 编辑
摘要: Unsafe Unsafe能够绕开rust强调的内存安全保证(memory safety guarantees),Unsafe的五大功能是: 1. Dereference a raw pointer,获取一个裸指针对应的数据 2. 调用其他unsafe的代码 3. 获取或者修改可变的static变量 阅读全文
posted @ 2020-10-28 00:09 雪溯 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Rust中的Pattern能够包含以下内容: a) literal b)Destructured arrays, enums, structs, or tuples c) 变量 d) 通配符 e) placeholders 以下的都算是pattern: a) match Arms b) if let 阅读全文
posted @ 2020-10-27 23:19 雪溯 阅读(281) 评论(0) 推荐(0) 编辑
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 79 下一页