摘要:
项目中经常需要公布一些用户的信息,比如抽奖结果展示,排行榜等。但是很多涉及到用户隐私,比如昵称,姓名,手机号等,这时候就要对用户敏感信息做处理,最常见的就是对手机号加星号处理。方法也非常简单,简单到我再写这篇之前都在考虑要不要发出来。不过还是简单分享一下,如果有兄弟用得上至少可以节省一点时间。 /* 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>< 阅读全文
摘要:
//主复选框 <input type="checkbox" id="btn"> //次复选框 <input type="checkbox" class="btns"> //使用JS完成全选全不选操作 <script> //给主复选框设置点击事件 $("#btn").click(function () 阅读全文
摘要:
这里推荐使用live方法 阅读全文
摘要:
通过js向layui form 中写入下拉框中时总是显示不出来 总是显示不出来因为有些时候,你的有些表单元素可能是动态插入的。这时 form模块的自动化渲染是会对其失效的。虽然 layui不支持双向绑定机制,但没有关系,你只需要执行form.render(type,filter);方法即可。 for 阅读全文
摘要:
//获取微信access_token public function access_token(){ $appid ='***********'; $secret = '******************'; $url = "https://api.weixin.qq.com/cgi-bin/to 阅读全文
摘要:
$url = "https://api.weixin.qq.com/cgi-bin;//file_get_contents发送get请求 json_decode转换数据 $data = json_decode(file_get_contents($url,true),true); 阅读全文
摘要:
/** * 发送post请求 * @param string $url 请求地址 * @param array $post_data post键值对数据 * @return string */ function send_post( $url , $post_data ) { $postdata = 阅读全文
摘要:
添加css样式 -webkit-tap-highlight-color: rgba(0,0,0,0); 即可 阅读全文
摘要:
html <div class="zsjm_one_one_one"> <span class="zsjm_one_one_one_span">所在地区: </span> <div class="zsjm_one_one_one_one"> <select id="pro" class="lv_si 阅读全文