var Timeline=function(){this.order=[];this.add=function(timeout,func,log){ this.order.push({ timeout:timeout, func:func, log:log ...
分类:
Web程序 时间:
2015-07-05 14:52:36
阅读次数:
200
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are
all va...
分类:
其他好文 时间:
2015-07-05 09:46:08
阅读次数:
95
如果在ECshop后台批量添加过大量类目的人都能体会到是多么的不方便(这点还是要说一下ECshop的产品经理,细节上还是要多注意),每次添加都需要在几百个类目里面找到要添加的父类目也是一个麻烦事,比如我的Tao Fashion站,里面一共有400多个类目每次添加一个新类目,即使是同一父类目下的,都需...
分类:
其他好文 时间:
2015-07-05 00:48:53
阅读次数:
226
select 5种子句:注意顺序where / group by /having / order by / limit /清空表中的数据:truncate 表名;导入表结构(不含数据): create table 表2 like 表1;删除表:drop table 表名;导入数据:ins...
分类:
数据库 时间:
2015-07-04 23:32:41
阅读次数:
227
第一步:在templates/order_info.htm文件找到:{if$operable_list.confirm}在此代码前加上“一键发货”按钮,代码如下:{if$order.pay_status==2&&$order.shipping_status!=1 &&$order.order_sta...
分类:
其他好文 时间:
2015-07-04 23:32:02
阅读次数:
239
记录订单状态order_status/* 订单状态 */define(‘OS_UNCONFIRMED’, 0); // 未确认define(‘OS_CONFIRMED’, 1); // 已确认define(‘OS_CANCELED’, 2); // 已取消defi...
分类:
其他好文 时间:
2015-07-04 23:27:54
阅读次数:
262
1,themes\default\user_transaction.dwt找到:在下面一行加入:物流跟踪继续查找:{$order.invoice_no}在它前面加入 id="invoice_no" ,方便下面抓取“发货单”继续查找{$order.shipping_name}在页面最后的下面一行增加:...
分类:
其他好文 时间:
2015-07-04 13:55:16
阅读次数:
162
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
If the target is not found ...
分类:
其他好文 时间:
2015-07-04 12:45:48
阅读次数:
99
To be honest, I do not know whether this problem is designed to let you use stacks. Anyway, I don't. Here are my codes, both BFS and DFS version. 1 .....
分类:
其他好文 时间:
2015-07-04 12:27:08
阅读次数:
115
题意:从左到右统计将同一层的值放在同一个容器vector中,要求上下颠倒,左右不颠倒。思路:广搜逐层添加进来,最后再反转。 1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5...
分类:
其他好文 时间:
2015-07-03 23:19:55
阅读次数:
139