摘要: 方法一var character = new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S"," 阅读全文
posted @ 2014-03-21 23:33 ahuing 阅读(4871) 评论(0) 推荐(0) 编辑
摘要: (function($){ $.fn.extend({ insertAtCaret: function(myValue){ var $t=$(this)[0]; if (document.selection) { this.focus(); sel = document.selection.createRange(); sel.text = myValue; this.focus(); } else if ($t.selectionStart || $t.selectionStart == '0') { var startPos = $... 阅读全文
posted @ 2014-03-21 14:25 ahuing 阅读(764) 评论(0) 推荐(0) 编辑
摘要: setcookie('mycookie','value');//函数原型:int setcookie(string name,string value,int expire,string path,string domain,int secure)echo($mycookie);echo($HTTP_COOKIE_VARS['mycookie']);echo($_COOKIE['mycookie']);删除Cookie(1)调用只带有name参数的setcookie();(2)使失效时间为time()或time-1;setcook 阅读全文
posted @ 2014-03-21 08:37 ahuing 阅读(625) 评论(0) 推荐(0) 编辑