04 2018 档案

摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Configuration; using System.Data; using System.Data.SqlClient; name... 阅读全文
posted @ 2018-04-26 22:06 冲天小肥牛 阅读(273) 评论(0) 推荐(0)
摘要://绑定和解绑事件 //绑定事件方式1 $("#btn1").bind("click", function () { //操作 }); //绑定事件方式2 $("#btn1").click(function () { //操作 }); //解除所有的事件 $("#btn1").unbin... 阅读全文
posted @ 2018-04-24 22:53 冲天小肥牛 阅读(127) 评论(0) 推荐(0)
摘要://1.$.each var arrint = [1, 2, 3, 4]; $.each(arrint, function (key, value) {//数组: key:索引 value:值 if (key == 3) { return false;//在eah中,跳出循环不能用break。 } console.log(key + ":" + value... 阅读全文
posted @ 2018-04-20 00:13 冲天小肥牛 阅读(134) 评论(0) 推荐(0)
摘要:'use strict'; let name1=Symbol('name'); let name2=Symbol('name'); console.log(name1 name2);//false console.log(Symbol.keyFor(name1));//underfined let 阅读全文
posted @ 2018-04-02 16:38 冲天小肥牛 阅读(95) 评论(0) 推荐(0)
摘要:实例1: 'use strict'; class User { constructor(name, pwd) { this.name = name; this.pwd = pwd; }; validateName(cb) { let name = this.name; return new Prom 阅读全文
posted @ 2018-04-02 10:45 冲天小肥牛 阅读(124) 评论(0) 推荐(0)
摘要:'use strict'; //语法塘 class User{ //构造函数 constructor(name,age){ this.name=name; this.age=age; } //静态方法 static getClasName(){ return 'user'; } //构造方法 ch... 阅读全文
posted @ 2018-04-02 08:33 冲天小肥牛 阅读(117) 评论(0) 推荐(0)