js时间转换函数 前端笔记
把时间转换成时间戳 <script type="text/javascript"> function transdate(Time){ var date=new Date(); date.setFullYear(Time.substring(0,4)); da...
把时间转换成时间戳 <script type="text/javascript"> function transdate(Time){ var date=new Date(); date.setFullYear(Time.substring(0,4)); da...
<script language="javascript"> function gosubmit(){ document.myfrom.submit(); } </script> <form name="myfrom" method="post" acti...
php5.4以上版本. json_encode($data,JSON_UNESCAPED_UNICODE)
加入样式 input { font:16px "Microsoft YaHei", arial; /font:16px arial;/ height:35px; line-height:35px\9; _line-height:36px; width:300px;; padding-left:4px...
server { listen 80; server_name www.xingdong365.com; location / { #root /usr/share/nginx/html; root /data/www/xingdong36...
<body scroll="no">
function getstrlen($str,$charset="utf-8") { $re = "/||{2}|{3}/"; $re = "/|/"; $re = "/|/"; $re = "/|\x...
function msubstr($str, $start=0, $length, $charset="utf-8", $suffix=true) { if(function_exists("mb_substr")) $slice = mb_substr($str, $sta...
前几天给pc端写接口用到数据加密,现在总结下,当时主要做的是对pc端传来的数据进行解密,现在用php模拟下加密以及解密 1.加密 第一步:先进行异或加密,然后在base64加密 function my_jiami($str){ //随机取8位数 for($i=0;$i<8;$i++){ ...
<script type="text/javascript"> MyIndex = '{:U(MODULE_NAME."/Login/index")}';//为跳转链接 if (top.location != self.location){ top.location =...