2018年10月12日
摘要:
Given a Weather table, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates. For example, ret
阅读全文
posted @ 2018-10-12 19:11
baiyuhong
阅读(187)
推荐(0)
2018年10月10日
摘要:
题目 There is a table courses with columns: student and class Please list out all classes which have more than or equal to 5 students. For example, the
阅读全文
posted @ 2018-10-10 14:34
baiyuhong
阅读(196)
推荐(0)
2018年10月9日
摘要:
1.基本语法 2.各种性能 待补充
阅读全文
posted @ 2018-10-09 16:22
baiyuhong
阅读(109)
推荐(0)
摘要:
题目 Suppose that a website contains two tables, the Customers table and the Orders table. Write a SQL query to find all customers who never order anyth
阅读全文
posted @ 2018-10-09 16:22
baiyuhong
阅读(111)
推荐(0)
2018年10月8日
摘要:
题目来源于leetcode中的数据库部分:181. Employees Earning More Than Their Managers 题目:The Employee table holds all employees including their managers. Every employe
阅读全文
posted @ 2018-10-08 11:04
baiyuhong
阅读(1874)
推荐(0)
2016年8月15日
摘要:
Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example:Given a = 1 and b = 2, return 3. 思路: 这里用到了一个半加
阅读全文
posted @ 2016-08-15 14:12
baiyuhong
阅读(141)
推荐(0)
2016年8月10日
摘要:
1..bind() 在.bind()绑定事件的时候,这些元素必须已经存在。 2.on()首选的,最灵活的 3.one()为元素的事件添加处理函数。处理函数在每个元素上每种事件类型最多执行一次。 4..delegate() undelegate是用来移除使用.delegate()的方式已经绑定的事件处
阅读全文
posted @ 2016-08-10 20:28
baiyuhong
阅读(228)
推荐(0)
摘要:
deferred对象是异步的,主要用来代替回掉函数,阮一峰说deferred对象是jquery的回掉函数的解决方案。 主要解决如何处理耗时的问题,提供了很好的控制和统一的接口。 1.“$.ajax()操作完成后,如果使用的是低于1.5.0版本的jQuery,返回的是XHR对象,你没法进行链式操作;如
阅读全文
posted @ 2016-08-10 20:16
baiyuhong
阅读(151)
推荐(0)
摘要:
某天看jQuey的deffered对象的时候,突然想起了曾经面试的一个关于ajax的问题,就是同时发送三个ajax请求,当三个请求都成功的时候输出1,当时不知道jQuery的$.when(),所以以为是一个请求结束的时候去判断另一个,现在想起来好傻。 $.when() 1.5版本以后添加的 参数:零
阅读全文
posted @ 2016-08-10 20:01
baiyuhong
阅读(988)
推荐(0)
摘要:
在中文情况下 git status是 “\344\272\247\345\223\201\351\234\200\346\261\202” 差不多这样的。 解决这个问题方法是: 转自:http://blog.csdn.net/cjopengler/article/details/46585319
阅读全文
posted @ 2016-08-10 17:39
baiyuhong
阅读(243)
推荐(0)