- 博客(11)
- 收藏
- 关注

原创 小程序高亮显示
<view class="content"><view class="test" wx:for="{{list}}" wx:key="index"> <image src="{{item.img}}"></image> <text>{{item.title}}</text> <text>{{item.content}}</text></view></view>
2021-03-13 12:12:03
173
转载 Git: pull时提示Please commit your changes or stash them before you merge.
对本地的代码进行修改后,直接git pull会提示本地代码和github代码冲突,需要先commit本地代码,或者stash他们解决方法分两种情况:希望保留本地的修改,pull之后,修改依然存在git stashgit pullgit stash pop解析:git stash: 将改动藏起来git pull:用新代码覆盖本地代码git stash pop: 将刚藏起来的改动恢复这样操作的效果是在最新的仓库代码的基础仍保留本地的改动不保留本地的修改,直接覆盖git reset --h
2022-04-14 15:46:46
1882
原创 小程序评论回复功能
<view class="container"> <view class="login-from"> <!--账号--> <view class="inputView"> <label class="loginLab">账号</label> <input class="inputText" placeholder="请输入账号" bindinput="usernameInput" /> &
2021-03-16 13:18:25
821
4
原创 laravel手机号验证码登录
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>登录</title> <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css"></head><
2021-03-13 12:24:45
745
原创 tp5.1使用jwt验证接口安全验证
composer require lcobucci/jwt3.3 //登录接口 public function logins(Request $request){ $data=$request->post(); $validate = new \app\admin\validate\Admin(); $result = $validate->check($data); if(!$result){ r
2021-03-10 21:03:20
616
原创 tp5框架经常出现thinkphp unserialize(): Error at offset 105 of 483 bytes
使用tp框架时,跑久了经常会出现这个bugthinkphp unserialize(): Error at offset 76 of 176 bytes,解决方法:清缓存,runtime目录下的cache和temp都清理掉,问题解决。命令行:php think clear
2021-02-25 09:43:31
521
原创 laravel 结合ElasticSearch高亮显示
安装composer require elasticsearch/elasticsearch创建索引 private $client; public function __construct() { $this->client = ClientBuilder::create(['127.0.0.1:9200'])->build(); } //创建索引 public function createindex() {
2021-01-24 20:01:46
227
原创 git命令学习参考
1.git clone 项目地址2.git status3.git branch4.复制文件到本地目录5.git status6.git add .7.git commit -m ‘上传’8.git push查看分支:git branch创建分支:git branch切换分支:git checkout创建+切换分支:git checkout -b合并某分支到当前分支:git merge删除分支:git branch -d强制删除分支:git branch -D删除远程分支:g
2020-09-14 14:05:14
123
原创 laravel55 API简单的增删改查
**控制器**<?phpnamespace App\Http\Controllers;use App\Test1;use Illuminate\Http\Request;use Validator;class Test extends Controller{ //注册 public function regData(Request $request){ //验证器验证 $validator = Validator::make($requ
2020-09-14 12:00:39
259
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人