摘要: package Thread;import javax.xml.bind.ValidationEvent;class snacks{ private int SaledSnacks=0; private int TotalSnacksNum=10; //初始化小吃店开始有10个面包 private 阅读全文
posted @ 2018-03-11 14:59 laiso 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 1.insert_select 的使用:从一个表复制数据给另一个表 INSERT INTO students(name,sex,LikeBooksNUM,LikesportNUM,average) SELECT name,sex,LikeBooksNUM,LikesportNUM,averageFR 阅读全文
posted @ 2018-02-09 21:32 laiso 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 1. 可访问属性 var person={ name:"王瑞睿", age:12 }; //访问器属性,访问器属性不包括数据值,但是包括getter与setter函数,setter is used to change the object`s property value Object.define 阅读全文
posted @ 2017-11-28 19:58 laiso 阅读(1259) 评论(0) 推荐(0) 编辑
摘要: 1,闭包的定义: In computer science, a closure is a function together with a referencing environment for the nonlocal names (free variables) of that function 阅读全文
posted @ 2017-11-23 13:20 laiso 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1,mysql 唤醒数据库,mysql -uroot -p11221 2,创建一个数据库: CREATE DATABASE mldn CHARACTER SET UTF8; 也可以写成小写的:create database wang character set utf8; 3,查看所有的数据库:sh 阅读全文
posted @ 2017-11-21 21:51 laiso 阅读(1282) 评论(0) 推荐(0) 编辑
摘要: 1,对字符串的操作:查找字符串中的所有数字字符串 function findnumber(str) { var arr =[]; var tmp=''; for(var i = 0; i < str.length; i++) if(str.charAt(i)<="9" && str.charAt(i 阅读全文
posted @ 2017-11-21 21:45 laiso 阅读(473) 评论(0) 推荐(0) 编辑
摘要: //binary tree//add order remove findfunction tree() { var node = function(key) { this.left = null; this.right = null; this.key = key; }; var root = nu 阅读全文
posted @ 2017-11-21 14:21 laiso 阅读(1300) 评论(0) 推荐(0) 编辑
摘要: 1,ready:当DOM载入就绪可以查询及操纵时绑定一个要执行的函数,在使用之前必须确保body元素的onload事件,,没有注册函数,否则不会触发ready函数。 $(document).ready(function(){ alert("sss")请确保在 <body> 元素的onload事件中没 阅读全文
posted @ 2017-11-21 14:15 laiso 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1.遍历数组: jquery $.each(arr,function(index,value,arr){ console.log(index+":"+value); }) $.each(arr,function(index,value,arr){ console.log(index+":"+valu 阅读全文
posted @ 2017-11-21 14:14 laiso 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1.filter():筛选函数 1>:筛选单个元素, object.filter("selector") 2>筛选多个元素: object.filter("selector,selector") <span class="yes"></span> <span>no or yes</span> <sp 阅读全文
posted @ 2017-11-21 14:14 laiso 阅读(2894) 评论(0) 推荐(0) 编辑