题目:Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the v...
分类:
其他好文 时间:
2014-06-25 14:12:42
阅读次数:
214
1 $("#link").click(function(){ 2 $.ajax({ 3 type: 'GET', 4 dataType: 'jsonp', 5 url: 'http://test.local.com/getdetail', 6 data:{id:1}, 7 s...
分类:
Web程序 时间:
2014-06-25 13:06:57
阅读次数:
235
1.QueryStringrequest.QueryString["ParaName"] //传递的“ParaName”值2.Form-Post控件传值3.Cookies传递实现单值Cookie的设置1).httpCookie ck_animal=new HttpCookie("animal");2...
分类:
其他好文 时间:
2014-06-25 11:27:11
阅读次数:
255
1 const 传达的意思应该是这个变量是常量不能更改2 const 在 * 左边表示数据是const,在右边表示指针是const // char greeting[] = "hello"; char* p = greeting; //const *: const data //...
分类:
编程语言 时间:
2014-06-25 11:12:18
阅读次数:
229
1.如果不用ajax的form提交,就必须把表单的每一条数据进行获取,并提交给action进行处理。这样做比较麻烦,现在用了jQuery的easyui,使用封装好的ajax的form提交。脚本代码如下:
//提交表单
function sysusersave(){
if($.formValidator.pageIsValid()){//校验表单输入信息是否合法
//使用jquery的aj...
分类:
Web程序 时间:
2014-06-25 10:36:01
阅读次数:
920
<body
<formaction=""method="post"
name="form1">
<inputtype="text"id="id"/>
</form>
</body>
<script>functionmyfocus(){
document.getElementById(‘id‘).focus();}</script>
分类:
Web程序 时间:
2014-06-25 10:11:17
阅读次数:
181
今天来尝试下源码编译安装mysql。这次我们要用到cmake工具,安装cmake。#yuminstallcmake#tar-xfmysql-5.5.37.tar.gz#cdmysql-5.5.37#groupadd-rmysql#useradd-gmysql-r-d/mydata/data/mysql#cmake.-DCMAKE_INSTALL_PREFIX=/usr/local/mysql\指定安装路径-DMYSQL_DATADIR=/myda..
分类:
数据库 时间:
2014-06-25 10:08:48
阅读次数:
423
/**
* Method 1: Delete the input element x
* and meanwhile keep the length of array after deleted n
* @param a the array
* @param n the length of array after deleted.
* @param x the element t...
分类:
其他好文 时间:
2014-06-25 08:27:27
阅读次数:
171
使用RE文件管理器把data文件夹的权限更改为可读写,问题就解决了...
分类:
系统相关 时间:
2014-06-25 07:01:43
阅读次数:
261
将oledb读取的excel数据快速插入的sqlserver中,很多人通过循环来拼接sql,这样做不但容易出错而且效率低下,最好的办法是使用
bcp,也就是System.Data.SqlClient.SqlBulkCopy
类来实现。不但速度快,而且代码简单,下面测试代码导入一个6万多条数据的sheet,包括读取(全部读..
分类:
数据库 时间:
2014-06-25 06:33:27
阅读次数:
347