ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    小程序发送post请求

    Oct 26, 202110 min read
    const post = function(message){
      wx.request({
        url: 'http://localhost:9999/logs', //仅为示例,并非真实的接口地址
        data: {
            message:JSON.stringify(message)
         }, 
        method:"POST",
        header: { 
          'content-type': 'application/json' 
        }
      })
    }
    
    const info =  (message)=>{
      console.log(message)
      post(message)
    }
    
    module.exports = {
        info
    }
    
    

    相关文章

    How to create consumable or non-consumable in-app purchases?

    To create in-app purchases, follow these steps: open iTunes Connect, select your app, navigate to "Features" > "In-App Purchases", add a new purchase, choose consumable or non-consumable, provide details, set availability, submit for review, and integrate after approval.

    Futter 可用的新Button

    Futter 引入了新的按钮类型 `TextButton`, `ElevatedButton`, 和 `OutlinedButton`,分别取代了旧的 `FlatButton`, `RaisedButton`, 和 `OutlineButton`,并配备了新的主题 `TextButtonTheme`, `ElevatedButtonTheme`, 和 `OutlinedButtonTheme`。

    npm 恢复使用官方源

    通过在命令行中输入特定命令并等待确认,可以设置npm使用官方源进行包的下载。

    “翻墙”上网不可取,这些知识需牢记!

    使用翻墙工具可能导致个人信息被盗、误入政治和法律陷阱,应避免使用并提高网络素养,保持网络安全。

    next.js 路由变化的钩子

    Next.js 中使用 `useEffect` 和 `useRouter` 钩子来监听和处理路由变化事件。