摘要: 主页面: <body> <div style="width:200px; float:left; margin-right:200px;border:solid 1px #333;"> <div>这是父页面:</div> <div id="text"></div> </div> <div> <div 阅读全文
posted @ 2020-05-25 11:20 ୠZeroଙ 阅读(111) 评论(0) 推荐(0) 编辑
摘要: var a= {i: "1",toString () {return a.i++}} if(a == 1 && a == 2 && a == 3) {console.log('nihao');} 阅读全文
posted @ 2019-10-22 09:24 ୠZeroଙ 阅读(135) 评论(0) 推荐(0) 编辑
摘要: jQuery 3.4.0 的更新内容主要是错误修复和功能改进,列举部分如下: 针对 .width 和 .height 的性能改进 支持 nonce 和 nomodule 针对 Radio 元素新增事件处理程序中的预期状态 针对 Object.prototype pollution 问题的小修复 jQ 阅读全文
posted @ 2019-04-12 09:34 ୠZeroଙ 阅读(561) 评论(0) 推荐(0) 编辑
摘要: function timeout(nums){ return new Promise(function(resolve,reject){ setTimeout(resolve,nums); })};var m=timeout(1000).then(()=>{console.log(true)}).c 阅读全文
posted @ 2019-04-11 09:23 ୠZeroଙ 阅读(100) 评论(0) 推荐(0) 编辑
摘要: String.prototype.change = function (type) { switch (type) { case "Date": if (isNaN(this) && !isNaN(Date.parse(this))) { return new Date(this); } else 阅读全文
posted @ 2019-04-11 09:12 ୠZeroଙ 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1:继承 Thread 类,为什么要继承 run 方法答案: Thread 实现了 Runnable 接口,而 run 方法是 Runnable 的方法, 接口中的方法 默认 public abstract。 如果继承 Thread 类,不重写 run 方法 ,不会报错 ,但是无法指 定线程运行的代... 阅读全文
posted @ 2015-02-10 12:43 ୠZeroଙ 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 需要引用System.Web.Extensions.dll 这个类库命名空间:System.Web.Script.Serialization数据结构public class Team { public string Name { get; set; } public List Users { ... 阅读全文
posted @ 2015-02-10 12:40 ୠZeroଙ 阅读(109) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.IO; u... 阅读全文
posted @ 2015-02-10 12:39 ୠZeroଙ 阅读(163) 评论(0) 推荐(0) 编辑