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
获取select :获取select 选中的 text : $("#ddlregtype").find("option:selected").text();获取select选中的 value: $("#ddlregtype ").val();获取select选中的索引: $("#d...
分类:
Web程序 时间:
2014-07-03 21:04:38
阅读次数:
280
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
@RequestMapping(value = "/update.action", method = RequestMethod.POST) public @ResponseBody Result update(HttpServletRequest request,@RequestParam(val...
分类:
其他好文 时间:
2014-07-02 17:45:14
阅读次数:
162
有许多时候,我们自己编写类的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
在工作中经常用到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
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
$("#btn5").click(function() { var str="";$("[name='checkbox'][checked]").each(function() '用来获取数组{ str+=$(this).val()+","; '用来遍历数组 //alert($(this).val....
分类:
Web程序 时间:
2014-07-01 17:14:45
阅读次数:
246
我们一般使用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
前两天写RTC中断 使用串口输出
发现程序会出现while(!(rUTRSTAT0 & 0x2));出不来的情况,但是中断是正常运作的
解决方法:
main函数增加:
U32 mpll_val = 0,consoleNum;
Port_Init(); //定义在2440lib.c...
分类:
其他好文 时间:
2014-07-01 14:36:56
阅读次数:
459