Controller 中代码和 上一节文章(http://www.cnblogs.com/yechangzhong-826217795/p/3785842.html )一样视图中代码如下: $(function () { $(".uploadpic").each(function...
分类:
Web程序 时间:
2014-06-15 08:07:22
阅读次数:
278
1. Introduction Mutual SSL authentication or certificate based mutual authentication refers to two parties authenticating each other through verifying...
分类:
其他好文 时间:
2014-06-15 06:41:10
阅读次数:
351
Description:You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways c...
分类:
其他好文 时间:
2014-06-15 06:37:02
阅读次数:
200
function jqchk(){ //jquery获取复选框值 var s=''; $('input[name="aihao"]:checked').each(function(){ s+=$(this).val()+','; });点击“提交”后,可以得到正确的选择值了,但是后面多一个,(英文逗...
分类:
Web程序 时间:
2014-06-14 23:22:50
阅读次数:
259
Decription:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, gi...
分类:
其他好文 时间:
2014-06-14 19:46:12
阅读次数:
251
原文:jQuery分别获取选中的复选框值function jqchk(){ //jquery获取复选框值 var s=''; $('input[name="aihao"]:checked').each(function(){ s+=$(this).val()+','; });点击“提交”后,可以得到...
分类:
Web程序 时间:
2014-06-14 18:06:44
阅读次数:
290
1、代码块代码块是用大括号或者do...end括起来的一系列代码。{ #this is a block}do #this is a blockend[1,2,3,4,5].each {|i| puts i}[1,2,3,4,5].each do |i|puts iend这2中写法效果是一样的,用{}可能更像C的风格2、作用域Ruby程序只会在3个地方关闭前一个作用域,同时打开一个新的作用域: 类定...
分类:
其他好文 时间:
2014-06-14 17:45:04
阅读次数:
150
Given a sorted array, remove the duplicates in place such that each element appear only onceand return the new length.Do not allocate extra space for ...
分类:
其他好文 时间:
2014-06-14 16:59:58
阅读次数:
221
题目描述You are given N baskets of gold coins. The baskets are numbered from 1 to N. In all except one of the baskets, each gold coin weighs w grams. In t...
分类:
其他好文 时间:
2014-06-14 16:22:52
阅读次数:
191
这是一个很有意思的问题,求解最大容积问题,值得动脑筋想一想。
原题如下:
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For...
分类:
移动开发 时间:
2014-06-14 13:12:01
阅读次数:
268