Loading

邢栋博客

用户登录前端验证(可继续验证后端)

html 代码 <form action="login.php" method="post" id="mylogin"> <div class="login_info"><div id="login_error"></div></div> <div class="login_c1"> <input type="text" name="user...

sublime text 3 许可证 激活码

适合sublime text 3 3103版本 —– BEGIN LICENSE —– Michael Barnes Single User License EA7E-821385 8A353C41 872A0D5C DF9B2950 AFF6F667 C458EA6D 8EA3C286 98D1D650 131A97AB AA919AEC EF20E143 B361B1E7 4C8B7F04 B085E65E 2F5F5360 8489D422 FB8FC1AA 93F6323C FD7F7544 3F39C318 D95E6480 FCCC7561 ...

js时间转换函数

把时间转换成时间戳 <script type="text/javascript"> function transdate(Time){ var date=new Date(); date.setFullYear(Time.substring(0,4)); date.setMonth(Time.substring(5,7)-1); date.setDate(Time.substring(8,10)); date.setHours(Time.substring(11,...

不使用submit按钮来提交表单

<script language="javascript"> function gosubmit(){ document.myfrom.submit(); } </script> <form name="myfrom" method="post" action="post.php"> <input type="text" name="username" /> <span onclick="gosubmit()">提交</sp...

json_encode()转码中文显示不正常解决办法

php5.4以上版本. json_encode($data,JSON_UNESCAPED_UNICODE)

chrome谷歌浏览器下input内text不垂直居中解决办法

加入样式 input { font:16px "Microsoft YaHei", arial; /font:16px arial;/ height:35px; line-height:35px\9; _line-height:36px; width:300px;; padding-left:4px; border:1px solid #ccc; }

让nginx支持ThinkPHP3.2.2的URL重写并可通过网址访问

server { listen 80; server_name www.xingdong365.com; location / { #root /usr/share/nginx/html; root /data/www/xingdong365/; index index.html index.htm index.php; if (!-e $request_filename) { rewrite ^/(.*)$ /ind...

网页中css去除滚动条

<body scroll="no">

php获得字符串内字符的个数(包含中文)

function getstrlen($str,$charset="utf-8") { $re['utf-8'] = "/[\x01-\x7f]|[\xc2-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xff][\x80-\xbf]{3}/"; $re['gb2312'] = "/[\x01-\x7f]|[\xb0-\xf7][\xa0-\xfe]/"; $re['gbk'] = "/[\x01-\x7f]|[\x...

php截取字符串函数(兼容中文或中英文字符串)

function msubstr($str, $start=0, $length, $charset="utf-8", $suffix=true) { if(function_exists("mb_substr")) $slice = mb_substr($str, $start, $length, $charset); elseif(function_exists('iconv_substr')) { $slice = iconv_substr($str,$star...