原创 微信支付重大坑(小程序與公衆號appid)
ps:此處的appid爲小程序的appid <?php namespace wxpay\config; use wxpay\lib\WxPayConfigInterface; use think\facade\Config; /**
原创 Laravel 分頁
//分頁 public function test9(){ $users=Member::paginate(2); return view('home.test.test9',compact(['
原创 react 自定義模塊化類名 localIdentName
module: { rules: [ { test: /\.js|jsx$/, use: 'babel-loader', exclude: /node_modules/ },
原创 class 組件
組件封裝 list import React from 'react' import ArtItem from './ArtItem' export default class ArtisList extends React.Comp
原创 React 創建項目
啓動:webpack配置 const path =require('path') const HtmlWebPackPlugin=require('html-webpack-plugin') //導入在內存中國呢自動生成index頁面插
原创 react antd踩坑 異步的defaultValue 不生效
<Input key={this.state.detail.name} defaultValue={this.state.detail.name} /> 加一個key
原创 React input框數值綁定
1 import React from 'react' export default class BindEvent extends React.Component{ constructor(){ super(
原创 小程序使用顯示html
使用wxparse 在js引入 var WxParse = require('../../wxParse/wxParse.js'); WxParse.wxParse('content', 'html', data.content,
原创 thinkphp 解決多圖片上傳問題
foreach (request()->file() as $k=>$file){ $info = $file->validate([ 'size' => $this->siz
原创 thinkphp5.* auth 權限驗證
composer require 5ini99/think-auth 安裝 // auth配置 'auth' => [ 'auth_on' => 1, // 權限開關 'auth_type'
原创 git 解決輸入密碼問題
https://blog.csdn.net/mayfla/article/details/79450352
原创 wangEditor3 上傳圖片到服務器
public function Img() { foreach($_FILES as $k=>$v){ $name=mt_rand(100000000,999999999
原创 React 使用富文本編輯器
https://blog.csdn.net/weixin_38514634/article/details/89964746
原创 React 中使用異步組件
1.安裝 cnpm i react-loadable -S 2.在detail文件中新建loadable.js import Loadable from 'react-loadable' import React from 'reac
原创 React 簡書項目開發
1.安裝 1.npm install -g create-react-app 2.create-react-app my-app cd my-app nom start 安裝慢配置淘寶鏡像: npm config set regist