ICode9

精准搜索请尝试: 精确搜索
  • PHP隐藏手机号中间四位2022-04-14 10:33:17

    1.隐藏中间4位 //自定义函数手机号隐藏中间四位 function yc_phone($str){   $str=$str;   $resstr=substr_replace($str,'****',3,4);   return $resstr; } 在thinkphp模板里的用法: <p>恭喜用户{$vo.user_phone|yc_phone=###}砸金蛋</p> <?php echo (substr_replace($

  • js把下划线字符串转为大驼峰字符串2022-03-28 21:04:15

    let str = "zifu_chuan_chang" function func(str) { let arr = str.split('_') let resStr = arr.reduce(function(prev, cur){ let str = prev + cur.slice(0, 1).toUpperCase() + cur.slice(1) return str })

  • LeetCode67. 二进制求和2021-06-06 09:04:45

    LeetCode67. 二进制求和 题目描述 /** * * 给你两个二进制字符串,返回它们的和(用二进制表示)。 * * 输入为 非空 字符串且只包含数字 1 和 0。 * */ 思路分析 二进制求和算法思路和十进制求和完全一致 二进制是逢2进一,而十进制是逢10进1,其他进制

  • 小程序“成语猜题”wx.request()获取题目并传值源码分享2021-01-08 12:59:47

    wx.request({                 url:getApp().globalData.urlpath+"/getquestion",                 data:{"qid":0},                 method: "GET",                 header:{'content-type': 'applicatio

  • js 常用工具类2019-06-21 15:51:30

    /** * 存储sessionStorage */const setStore = (name, content) => {   window.sessionStorage.setItem(name, content);}/** * 获取localStorage */ const getStore = (params) => {   let name = params;   let content = window.sessionStorage.

  • 12. Integer to Roman[M]整数转罗马数字2019-06-09 14:51:25

    题目 Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 思路 思考罗马数字与整数的变换关系: Symol|Value :-:|:-: I|1 V|5 X|10 L|50 C|100 D|500 M|1000 罗马数字通常按照从大到小从左到右的顺序排,字母累加以表示

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有