摘要: Date.prototype.Format = function (fmt) { //author: meizz var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), // 阅读全文
posted @ 2020-02-04 20:44 85541585 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1.json_decode() json_decode (PHP 5 >= 5.2.0, PECL json >= 1.2.0) json_decode — 对 JSON 格式的字符串进行编码 说明 mixed json_decode ( string $json [, bool $assoc ] 阅读全文
posted @ 2020-02-04 20:03 85541585 阅读(727) 评论(0) 推荐(0) 编辑
摘要: var options;$.ajax({ data:formData, url:'__URL__/saveorder', dataType:"JSON", type:"POST", async:false, success:function(result){ options = result.dat 阅读全文
posted @ 2020-02-02 19:12 85541585 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 这里是window7 下的mysql5.7 和mysql5.6是有一些区别的 像密码修改,mysql早前的版本user表有password字段,5.7为authentication_string 首先找到my.ini 这个默认在C:\ProgramData\MySQL\MySQL Server 5. 阅读全文
posted @ 2019-07-08 14:13 85541585 阅读(735) 评论(0) 推荐(0) 编辑
摘要: Ajax上传单图片Html代码: Ajax上传单图片JS代码: Ajax上传多图片Html代码: Ajax上传多张图片Js代码: Ajax单个图片,多个图片,对象,综合上传HTML代码: Ajax综合上传Js代码: 阅读全文
posted @ 2019-05-28 23:10 85541585 阅读(1959) 评论(0) 推荐(0) 编辑
摘要: 初始化 阅读全文
posted @ 2019-03-09 11:42 85541585 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: PHP 加密: base64_encode(str_replace(" ","+","工资情况")) 解密: base64_decode(str_replace(" ","+","工资情况"));thinkphp {$vo.ctname|base64_encode} 阅读全文
posted @ 2019-01-23 09:47 85541585 阅读(464) 评论(0) 推荐(0) 编辑
摘要: $('body').on('click', '.btnedit', function() { //点击按钮事件 $('input[name=name]').val($(this).attr('data-name')); //name赋值 $('input[name=nickname]').val($ 阅读全文
posted @ 2019-01-10 17:58 85541585 阅读(8339) 评论(0) 推荐(0) 编辑
摘要: 获取数组需要加 /a input('pname/a') 阅读全文
posted @ 2019-01-08 11:04 85541585 阅读(86) 评论(0) 推荐(0) 编辑
摘要: MySql将一个表的数据复制到另外一张表 INSERT INTO productinfo SELECT * FROM backproduct where id=7167 删除字段中的空格:update apply set enname=replace(`enname`,' ',''); 查询name 阅读全文
posted @ 2018-12-15 12:52 85541585 阅读(100) 评论(0) 推荐(0) 编辑