码迷,mamicode.com
首页 >  
搜索关键字:val    ( 23217个结果
asp.net各种类型视频播放代码(全)
1。avi格式代码片断如下:<object id="video" width="400" height="200" border="0"classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"><param name="ShowDisplay" val...
分类:Web程序   时间:2014-07-07 09:09:19    阅读次数:243
jquery获取select选择的文本与值
获取select :获取select 选中的 text : $("#ddlregtype").find("option:selected").text();获取select选中的 value: $("#ddlregtype ").val();获取select选中的索引: $("#d...
分类:Web程序   时间:2014-07-03 21:04:38    阅读次数:280
js 根据输入框内容自动定位listbox选项
2014-7-1 应用在某门户应用排序管理页面function OnTextChanged() {var inputText = $.trim($("#txtLocateAllSeller").val());if (inputText.length != 0) {var el = $('.appli...
分类:Web程序   时间:2014-07-03 00:04:43    阅读次数:266
文件上传action
@RequestMapping(value = "/update.action", method = RequestMethod.POST) public @ResponseBody Result update(HttpServletRequest request,@RequestParam(val...
分类:其他好文   时间:2014-07-02 17:45:14    阅读次数:162
operator=处理自我赋值
有许多时候,我们自己编写类的operator=函数(例如,当类中包含指针时)。 考虑如下的一个类: class Widget { public: Widget(int x=0): val(new int(x)) {} ~Widget() { delete val; } Widget(const Widget &rhs): val(new int(*rhs.val)) {} //...
分类:其他好文   时间:2014-07-02 09:08:20    阅读次数:188
jquery 操作select,checkbox,radio (整理)
在工作中经常用到select,checkbox,radio,今天有点空闲就整理一下,免得以后用的时候还要重新找。 操作select下拉框 —— 获取值或选中项: 1, $("#select_id").change(function(){//code...});  //为Select添加事件,当选择其中一项时触发 2,var checkValue=$("#select_id").val(...
分类:Web程序   时间:2014-07-02 08:56:52    阅读次数:237
Leetcode:Sort List 对单链表归并排序
Sort a linked list in O(n log n) time using constant space complexity. 看到O(n log n)的排序算法,适合单链表的首先想到的就是归并排序 /** * Definition for singly-linked list. * struct ListNode { * int val; * Lis...
分类:其他好文   时间:2014-07-02 08:47:34    阅读次数:239
jquery获取一组文本框的值
$("#btn5").click(function() { var str="";$("[name='checkbox'][checked]").each(function() '用来获取数组{ str+=$(this).val()+","; '用来遍历数组 //alert($(this).val....
分类:Web程序   时间:2014-07-01 17:14:45    阅读次数:246
IE8下Jquery获取select选中的值的问题
我们一般使用jquery获取select时,一般这么用:      var selectedValue = $("#a").val();     在非IE8下,selectedValue的值为“1”,typeof selectedValue 为“string”。     在IE8下,selectedValue的值为[“1”],typeof selectedValue 为 ...
分类:Web程序   时间:2014-07-01 15:04:44    阅读次数:183
2440裸机串口调试 while(!(rUTRSTAT0 & 0x2));问题
前两天写RTC中断 使用串口输出 发现程序会出现while(!(rUTRSTAT0 & 0x2));出不来的情况,但是中断是正常运作的 解决方法: main函数增加: U32 mpll_val = 0,consoleNum; Port_Init(); //定义在2440lib.c...
分类:其他好文   时间:2014-07-01 14:36:56    阅读次数:459
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!