码迷,mamicode.com
首页 >  
搜索关键字:val    ( 23217个结果
jquery 取的单选按钮组的值
1箱起批2箱起批3箱起批var v_wholesale_one = $(“:radio[name='wholesale_one'][checked]“).val();
分类:Web程序   时间:2014-07-31 16:43:26    阅读次数:296
Binary Tree Preorder Traversal
二叉树的前序遍历递归实现/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : v...
分类:其他好文   时间:2014-07-31 12:44:46    阅读次数:188
Binary Tree Postorder Traversal
二叉树的后序遍历递归实现/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : v...
分类:其他好文   时间:2014-07-31 12:30:16    阅读次数:224
多选 超过数量提示 checkbox
$(function(){$("input[type=checkbox]").click(function(){varna=$(this).attr("name");varnum=$(this).attr("num");vartruenum=$(this+"[name="+na+"][checked]").length;if(truenum>num){alert("本题最多只能选"+num+"个答案!");}//if($(".name").val()==""||$(".sfz")...
分类:其他好文   时间:2014-07-31 09:58:46    阅读次数:232
poj2031(Building a Space Station)
题目地址:Building a Space Station题目大意: 在一个三维的空间里有若干个球体,求从走过所有球花费最少,题目要求两个球体接触就不需要建桥意为花费为0,实力给吃的n行, 其中包括 球的X,Y,Z的坐标,r为球的半径。这里就清晰了,意思就是求无向图最小生成树,val就为两个求圆心....
分类:其他好文   时间:2014-07-30 23:40:45    阅读次数:299
Jquery append 生成的新表单,手动输入修改后,无法获取html真实代码的解决方案
function doSubmit() { $(‘#T_form select‘).each(function(){ $(this).find(‘:selected‘).attr(‘selected‘, true); }); $("#T_form :text").each(function(){ $(this).attr(‘value‘, $(this).val()); })...
分类:移动开发   时间:2014-07-30 21:02:44    阅读次数:209
循环双链表的简单实现
//代码为自己编写,可能有问题,欢迎大家留言指正! #include #include using namespace std; typedef struct dnode { int val; dnode *prior; dnode *next; }dnode; dnode * create(); void traverse(dnode *pHead); bool insert(dn...
分类:其他好文   时间:2014-07-30 20:56:44    阅读次数:210
array_count_values函数
array_count_values() 函数用于统计数组中所有值出现的次数。本函数返回一个数组,其元素的键名是原数组的值,键值是该值在原数组中出现的次数。例子输出:Array ( [Cat] => 1 [Dog] => 2 [Horse] => 1 )
分类:其他好文   时间:2014-07-30 20:37:04    阅读次数:299
单链表操作实例程序
#include #include using namespace std; typedef struct node { int val; node *next; }node; node * create_list(); void traverse_list(node *pHead); int get_len_list(node *pHead); bool delete_list(no...
分类:其他好文   时间:2014-07-30 17:43:54    阅读次数:237
POJ 1201
d[i]表示在[0,i]这个区间内一共选了d[i]个数对于每个为[ai,bi]的区间,你必须在这个区间上至少取ci个不同的整数,用d[i]如何表示?d[ bi ]-d[ ai-1 ] >= ciEdge:(ai-1 -> bi) val = ci另外:0#include #include #incl...
分类:其他好文   时间:2014-07-30 11:27:43    阅读次数:249
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!