基本思路:
通过使用jquery选择器得到对应表单的jquery对象,然后使用attr方法修改对应的action
示例程序一:
默认情况下,该表单会提交到page_one.html
点击button之后,表单的提交地址就会修改为page_two.html
jquery test
修改form的提交地址为page_two.html
var $fun = ...
分类:
Web程序 时间:
2014-06-29 07:33:12
阅读次数:
236
【题目】
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1.
【题意】
判断二叉树是否是平衡二叉树
【思路】
平衡二...
分类:
其他好文 时间:
2014-06-20 11:02:54
阅读次数:
173
Find the contiguous subarray within an array
(containing at least one number) which has the largest sum.For example, given
the array[?2,1,?3,4,?1,2,1,...
分类:
其他好文 时间:
2014-06-20 08:59:38
阅读次数:
235
在JavaScript模块到底是什么event = function() { // do more
return { bind: function() {}, unbind: function() {}, trigger: function() ...
分类:
编程语言 时间:
2014-06-20 08:50:47
阅读次数:
408
在实际的项目中,从音频设备采集到的音频的类型和编码器类型(aac
,amr)通常是不一致的。那么我们首先需要做重采样的过程。利用swr_convert
重新采样。这时候我们可能会遇到另外一个问题。就是在encode_audio的时候遇到more samples than frame size (av...
分类:
其他好文 时间:
2014-06-13 13:55:45
阅读次数:
405
Rename a TFS Project CollectionI was asked the
other day how to rename a Team Project Collection.There is a way, and it is more
like a three card shuf...
分类:
其他好文 时间:
2014-06-13 13:39:13
阅读次数:
537
视图可以屏蔽某些基表的信息,或是join多个基表组成一个复杂查询,视图本身也是可以进行DML操作,但受一些条件的限制。
首先我们看下官方文档对视图进行DML操作的要求说明:
The following notes apply to updatable views:
An updatable view is one you can use to insert, update, or...
分类:
其他好文 时间:
2014-06-07 16:08:45
阅读次数:
264
题目
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetcode",
dict =...
分类:
其他好文 时间:
2014-06-07 13:53:28
阅读次数:
247
Problem Description
An encoding of a set of symbols is said to be immediately decodable if no code for one symbol is the prefix of a code for another symbol. We will assume for this problem that all ...
分类:
其他好文 时间:
2014-06-07 12:57:03
阅读次数:
231
atitit.404错误的排查流程总结
#----------jsp head errorPage=""
del zeu ok le.
#------resin 服务器配置问题。俩个应用配置到了同样的的文件夹..
paip.404err two app cfg one same dir
/ cant access
/app1 only can acces...
分类:
其他好文 时间:
2014-06-07 12:16:37
阅读次数:
267