博客文章
最近发表的话题
最近发表的评论
  • 大型项目优化思路 at 3周前

    @hareluya If you look at the big three cloud providers, Amazon, Google and Microsoft, they each provide their own FaaS solution. Lambda, Cloud Functions and Azure Functions respectively. If you take a look at the documentation, none provide support for PHP*.

  • 大型项目优化思路 at 3周前

    @樊浩柏 If you look at the big three cloud providers, Amazon, Google and Microsoft, they each provide their own FaaS solution. Lambda, Cloud Functions and Azure Functions respectively. If you take a look at the documentation, none provide support for PHP*.

  • 大型项目优化思路 at 3周前

    @韩众 没接触go语言。。。只接触过php,py,js和一点点的java。。。

  • moell/mojito - 基于 Laravel、Vue、ELement 构建的基础后台系统扩展 at 1个月前

    执行成功后获取到相应的密码授予客户端的 ID 和 secret 并且配置到相对应的 resources/config/index.js :

    改为resources/js/config/index.js

  • moell/mojito - 基于 Laravel、Vue、ELement 构建的基础后台系统扩展 at 1个月前

    @moell 汗。你分享你的成果,谢个毛线哟!应该说谢谢的使我们

  • moell/mojito - 基于 Laravel、Vue、ELement 构建的基础后台系统扩展 at 1个月前

    老铁可以的

  • Laravel-admin at 2个月前

    @小无力

    引用廖雪峰老师的一段话,python其实可以换成laravel

  • Laravel-admin at 2个月前

    @lovecn composer require encore/laravel-admin 1.5.*

  • 这个页面用 vue.js 怎么写? at 2个月前
    <!DOCTYPE html>
    <html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
    
        <head>
    
            <!-- Required meta tags -->
            <meta charset="utf-8">
            <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    
            <!-- Bootstrap CSS -->
            <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
    
            <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
            <title>Title</title>
        </head>
    
        <body>
    
        <div id="app">
    
                <table class="table">
                    <thead class="thead-light">
                        <tr>
                            <th scope="col">名称</th>
                            <th scope="col">单价<button @click="asc = true">↑</button><button @click="asc = false">↓</button></th>
                            <th scope="col">数量</th>
                            <th scope="col">合计</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr v-for="(x, i) in list">
                            <td>{{ x.name }}</td>                     
                            <td>{{ x.price }}</td> 
                            <td>
                            <button @click="reduce(x, i)">-</button>    
                            {{ x.num }}
                            <button @click="increace(x, i)">+</button>    
                            </td>
                            <td>{{ x.num * x.price }}</td>
                        </tr>
                    </tbody>
                </table>          
                <Br>
                <p >总金额:{{ all }}</p>
                <hr>
                <div>
                    <input type="checkbox" id="checkbox" v-model="checked">
                    <span>使用8折优惠卷:-{{ checked ? all * 0.2 : 0}}
                    <hr>
                    <strong>合计:</strong>{{ checked ? all * 0.8 : all }}
                    <hr>
                    </span>
                </div>
    
                <div>
                    <form @submit.prevent="submit">
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <input v-model="msg.name" placeholder="请输入商品名">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input v-model="msg.price" placeholder="请输入单价">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="submit" value="添加商品">
                    </form>
                </div>
            </div>
            <script>
                    var model={
                        info: [{
                            name: "iphone7",
                            price: 6000,
                            num: 1,
                            total: 6000
                        }, {
                            name: "荣耀6x",
                            price: 1200,
                            num: 1,
                            total: 1200
                        }, {
                            name: "dell笔记本",
                            price: 4000,
                            num: 1,
                            total: 4000
                        }],
                        checked:false,
                        msg: {},
                        asc: false
                    }
    
                    var vm = new Vue({
                        el: "#app",
                        data: model,
                        computed: {
                        //商品总价
                            all() {
                                let total = 0;
                                for (let index = 0; index < this.info.length; index++) {
                                    const {num, price} = this.info[index]
                                    total += num * price
                                }
                                return total
                            },
                            list() {
    
                                if (!this.asc) {
                                    return this.info.sort((a,b)=>b.price - a.price)
                                } else {
                                    return this.info.sort((a,b)=>a.price - b.price)
                                }
    
                            }
                        },
                        methods: {
                            reduce: function(x, i) {
                                // this.info[i].num = x.num - 1
                                if(x.num>0){
                                    x.num = x.num - 1
                                }
                            },
                            increace: function(x, i) {
                                // this.info[i].num = x.num + 1
                                x.num = x.num + 1
                            },                    
                            submit: function() {
                                //console.log(this.msg);
                                 vm.info.push({
                                     name: this.msg.name,
                                     price: this.msg.price,
                                     num: 1,
                                     total:this.msg.price
                                 });
                                 this.msg={ name:'',price:''}                            
                            }
                        }
    
                    })
            </script>
        </body>
    
    </html>
    
  • 七夕 -- medoo at 2个月前

    @codewithyou 其实主要是我对laravel的DB门面不太熟悉;其次laravel数据库操作,第一考虑的肯定是laravel自带的ORM,碰到不能用ORM处理的操作,直接去Medoo找到对应的方法;而且我比较喜欢Medoo代码的写法;

  • Laravel 下使用 Guzzle 编写多线程爬虫实战 at 2个月前

    一份可运行的代码胜过千言万语。。。。福利福利收藏收藏

  • 为'艺术'而生的'小妾'工具--QueryList at 3个月前

    @刘兵 老铁七夕快乐。。。markdown样式问题,我把这篇文章发出来的瞬间就后悔了

  • 为'艺术'而生的'小妾'工具--QueryList at 3个月前

    @刘兵 其实我没弄懂你的意思 :joy:

  • QueryList 4.0 简洁、优雅的 PHP 采集工具 at 3个月前

    @Jaeger 我用PhantomJS插件老是报这个错误: Uncaught JonnyW\PhantomJs\Exception\NotWritableException: File could not be written to system as target is not writable: C:\Windows/9610a23279129a203236 in D:\phpStudy\WWW\ddd\public\vendor\jonnyw\php-phantomjs\src\JonnyW\PhantomJs\Cache\FileCache.php:64 Stack trace: #0 D:\phpStudy\WWW\ddd\public\vendor\jonnyw\php-phantomjs\src\JonnyW\PhantomJs\Procedure\Procedure.php(188): JonnyW\PhantomJs\Cache\FileCache->save('9610a23279129a2...', '\n\n/*\n Set up...') #1 D:\phpStudy\WWW\ddd\public\vendor\jonnyw\php-phantomjs\src\JonnyW\PhantomJs\Procedure\Procedure.php(98): JonnyW\PhantomJs\Procedure\Procedure->write('\n\n/*\n Set up...') #2 D:\phpStudy\WWW\ddd\public\vendor\jonnyw\php-phantomjs\src\JonnyW\PhantomJs\Client.php(162): JonnyW\PhantomJs\Procedure\Procedure->run(Object(JonnyW\PhantomJs\Http\Request), Object(JonnyW\PhantomJs\Http\Response)) #3 D:\phpStudy\WWW\ddd\public\vendor\jaeger\querylist-phantomjs\PhantomJs.php(47): JonnyW\PhantomJs\Client->send(Object(JonnyW\PhantomJs\Http\Request), Object(JonnyW\P
    文件:D:\phpStudy\WWW\ddd\public\vendor\jonnyw\php-phantomjs\src\JonnyW\PhantomJs\Cache\FileCache.php
    我看到你在官方文档的提问,你的问题解决了吗?

  • Laravel-admin at 3个月前

    @JINJIALEI
    在我的github上面有原本的Xind文件
    地址:https://github.com/keyesone66/Xmind.git