码迷,mamicode.com
首页 >  
搜索关键字:value    ( 37865个结果
js 读写cookie。不同路径会储存各自的cookie。而 在v.net环境下读写是在 / 根目录。
所以如果全站不分path 的 话。应该显示的写上 path 。设置为根目录function setCookie(name, value) { document.cookie = name + "=" + escape(value) + ";path=/"; }
分类:Web程序   时间:2014-07-11 12:18:31    阅读次数:237
基于VMware的eCos应用程序测试(hello wold)
(1)脚本配置ecosconfig new pccdl_component CYG_HAL_STARTUP { # Flavor: data # No user value, uncomment the following line to provide one. user_va...
分类:其他好文   时间:2014-07-11 12:04:48    阅读次数:259
【LeetCode】Search Insert Position (2 solutions)
Search Insert PositionGiven a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if ...
分类:其他好文   时间:2014-07-11 09:09:33    阅读次数:211
(Android review)SharePreferences的使用
典型应用场合:进入某一界面以后,显示默认值(其实这个也可以通过直接在布局文件中指定)基本点:1)SharePreferences所生成的文件最终还是以.xml文件的形式存在于/data/data/应用包名/share_prefs/xxx.xml中2)SharePreferences适合用于存储key-value型的数据基本使用:存:Editor editor = sp.edit();//获取编辑器...
分类:移动开发   时间:2014-07-11 00:10:55    阅读次数:356
淘宝分布式 key/value 存储引擎Tair安装部署过程及Java客户端测试一例
tair 是淘宝自己开发的一个分布式 key/value 存储引擎. tair 分为持久化和非持久化两种使用方式. 非持久化的 tair 可以看成是一个分布式缓存. 持久化的 tair 将数据存放于磁盘中. 为了解决磁盘损坏导致数据丢失, tair 可以配置数据的备份数目, tair 自动将一份数据的不同备份放到不同的主机上, 当有主机发生异常, 无法正常提供服务的时候, 其余的备份会继续提供服务. 目录 1. 简介 2. 安装步骤及问题小记 3. 部署配置 4. Java客户端测试 5. 参考资料...
分类:编程语言   时间:2014-07-10 22:48:57    阅读次数:401
poi excel批量导入 解决各类型的数据
String value=this.getValue((HSSFCell) row.getCell(position))   数字类型  时间类型 字符串类型验证没问题, 数字类型如果是1234.0会将其变成1234  如果是1234.5保存仍然保持小数位1234.5,用来解决电话号码和普通数字问题 时间类型将其格式化成了 2015-12-09 12:13:12这种格式便于保存数据库...
分类:其他好文   时间:2014-07-10 20:30:56    阅读次数:270
Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another expression. Some examples: ["2", "1", ...
分类:其他好文   时间:2014-07-10 19:39:53    阅读次数:146
【Java集合源码剖析】HashMap源码剖析(转)
HashMap简介 HashMap是基于哈希表实现的,每一个元素是一个key-value对,其内部通过单链表解决冲突问题,容量不足(超过了阀值)时,同样会自动增长。 HashMap是非线程安全的,只是用于单线程环境下,多线程环境下可以采用concurrent并发包下的concurrentHash.....
分类:编程语言   时间:2014-07-10 16:27:05    阅读次数:248
Binary search for the first element greater than target
We all know how to search through an array for an element whose value equals the target value, but how to search for the element that has value greate...
分类:其他好文   时间:2014-07-10 16:08:21    阅读次数:168
c#中cookies的存取操作
在客户端创建一个username的cookies,其值为gjy,有效期为1天.方法1:Response.Cookies["username"].Value="zxf";Response.Cookies["username"].Expires=DateTime.Now.AddDays(1);方法2:S...
分类:其他好文   时间:2014-07-10 14:45:25    阅读次数:166
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!