主页
  • 微信小程序this.setData修改数组单挑数据

     方式一:   使用['字符串'],例如this.setData({   ['user_info.age']:20,   ['cars[0]']:'tesla'})方式二:  构造变量,重新赋值,例如....

    0 半符堙 阅读 1534 点赞 0 4年前
  • JS中循环遍历数组的四种方式总结

    for循环:for(letindex=0;index{console.log(elem,index);});for-of循环:for(constelemofsomeArray){console.log....

  • nginx域名转发

    location/{if(!-e$request_filename){rewrite ^(.*)$ /index.php?s=$1 last;  break;}proxy_passhttp://39.....

    0 相思赋予谁 阅读 1473 点赞 0 4年前
  • 微信小程序实现watch属性监听数据变化

    Vue提供了一种通用的方式来观察和响应Vue实例上的数据变动:监听属性watch。虽然watch的滥用会导致性能不佳,但在一些情况下我们还是需要watch,使得代码更加简洁、逻辑更加清晰(其实就是嫌麻....

    0 恍惚 阅读 1623 点赞 0 4年前
  • 微信小程序修改单选框样式

    /* 修改radio样式 */radio .wx-radio-input.wx-radio-input-checked {   border-color: #89AEF5!important;}rad....

  • 微信小程序蓝牙连接和写入数据

    js:const app = getApp()function inArray(arr, key, val) {  for (let i = 0; i 

    0 歌长夜 阅读 1669 点赞 0 4年前
  • 微信小程序蓝牙连接和写入数据

    js:const app = getApp()function inArray(arr, key, val) {  for (let i = 0; i 

    0 _眼泪啲錵吙 阅读 1989 点赞 0 4年前
  • Linux中退出编辑模式的命令

    vim有三种模式,注意:这三种模式有很多不同的叫法,我这里是按照鸟哥的linux书中的叫法。一般指令模式、编辑模式、指令列命令模式 1.vim文件名    进入一般模式;2.按i进行编辑  进入编辑模....

    0 霸烈~枪神 阅读 1940 点赞 0 4年前
  • Linux安装PHP环境LNMP

    Linux系统搭建LNMP环境,即Linux+Nginx+mysql+php。服务器版本是CentOSLinuxrelease7.4.1708,阿里云服务器,所以部署环境之前,需要先登录阿里云服务器管....

    0 沫兮 阅读 1531 点赞 0 4年前
  • linux下的lnmp安装

    是否安装:find/-namenginx1.安装Nginx#安装Nginx的编译环境gccyuminstallgcc-c++ #nginx的http模块使用pcre解析正则表达式所以安装perl兼容的....

    0 失我者永失 阅读 1762 点赞 0 4年前