后台管理中总是使用frameset进行分成部分进行管理,但是感觉很不好用,尤其是页面间调转还要判断window.parent,太令我费神了,于是学习使用XMLHttpRequest进行页面局部刷新。代码如下:Java代码456后经高手提醒,可以使用ajax技术来写,使用jquery很简单,示例如下:...
分类:
Web程序 时间:
2014-06-26 21:32:16
阅读次数:
218
转载地址:http://blog.csdn.net/donglynn/article/details/17056099错误SQL 查询:DELETE FROM `zmax_lang` WHERE CONVERT( `zmax_lang`.`lang` USING utf8 ) = 'fr' ...
分类:
其他好文 时间:
2014-06-26 21:31:40
阅读次数:
204
【1】子页面取得父页面的dom对象 parent.window.$('#id').val("");【2】父页面取得子页面的对象 $(window.frames["iframeName"].document).find('#subjectDg').datagrid('acceptChanges'); ...
分类:
Web程序 时间:
2014-06-26 20:24:06
阅读次数:
228
Write a function to find the longest common prefix string amongst an array of strings.public class Solution { public String longestCommonPrefix(Str...
分类:
其他好文 时间:
2014-06-25 17:03:03
阅读次数:
331
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2014-06-25 12:44:56
阅读次数:
188
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the lon...
分类:
其他好文 时间:
2014-06-25 11:07:45
阅读次数:
230
$area = array(array('id'=>1,'name'=>'安徽','parent'=>0),array('id'=>2,'name'=>'海淀','parent'=>7),array('id'=>3,'name'=>'濉溪县','parent'=>5),array('id'=>4,'...
分类:
其他好文 时间:
2014-06-25 11:05:07
阅读次数:
273
【题目】
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.
For example,
Given [100, 4, 200, 1, 3, 2],
The longest consecutive elements sequence is [1, 2, 3, 4]. Return its length: 4.
Your algorithm should run...
分类:
其他好文 时间:
2014-06-25 07:55:42
阅读次数:
244
获取table中选中一行的一个单元格的值varid=$(‘input:checked‘).val();
alert($(‘input:checked‘).parent().parent().index());
varrow=$(‘input:checked‘).parent().parent().index();
varstr=document.getElementById("table1").rows[row+1].cells[5].innerText;
alert(str);..
分类:
Web程序 时间:
2014-06-25 06:21:50
阅读次数:
281
一个垂直方向的LinearLayout,包含两个View。下面一个View(工具栏)固定在屏幕底部,上面的View占据剩余的屏幕空间。<LinearLayoutandroid:orientation="vertical"android:id="@+id/vertical_layout"android:layout_width="match_parent"android:layout_height="match_paren..
分类:
其他好文 时间:
2014-06-24 16:57:06
阅读次数:
199