class human{ public $name = leo ; public $age = 25 ; public function __construct($name,$age){ $this->name=$name; $this->age=$age; } } means that when this human is instantiated, if no parameters are given, use leo, 25. found...
1. The value of the foreground data is as follows: var vm = new Vue({ el: -sharpvm , data: { offer: { isshow:false, sum_total_price:0, sum_discount:0, sum_price:0, children:[ ...
everyone thinks: 1. For example, I upload a jpg image (original image 800k), which is converted to webp format (80k) after uploading, which only takes up less online storage space 2. You can browse the jpg diagram of the same name in the webp file thr...
I wrote a small blog program myself, and now it s hard for me to integrate a WYSIWYG editor. segmentfault " " ...
how does the laravel queue failed simulate triggers? ...
the demand is to find the name with the highest price of danwei. I use aggregate function to add groups, which is useless, not only MAX is useless, MIN is not available, except COUNT can work. does the Great God have any other ways? looked up a lot ...
The RPC library recommended by the CI official documentation is XMLrpc, where official demo is as follows client create a controller Xmlrpc_client.php using a text editor. In this controller, paste the following code and save it to the applicatio...
problem description the website made of laravel is placed on the pagoda, but the entry file has been tampered with all the time. Try to find loopholes, delete many Trojans with the suffix PHP in the directory, and turn on the filter of pagoda nginx an...
for example, the code for the first version is: api public function buyGoods(){ $validate->validateParam(); $goods->buy(); } at this time, the first version is running steadily, and we hope that we will not modify this ...
when implementing a method, I always worry that the incoming parameters are illegal, but I don t want to write a check because it s redundant. A simple function, a few lines of things, write a bunch of checks, and the method becomes older. And a row o...
echo date( Y-m-d , strtotime( last month , strtotime( 2018-12-31 ))) this output 12-01 ...
how to concatenate SQL statements to return data of type float when querying? ...
here s the thing. our APP is going to embed the game, so we don t want to do ourselves. Then what we want now is to use a third-party game to embed it into our APP. In addition, the game data can be called back to our side and we also keep a copy of...
for example, when I transfer an api successfully, I have two callbacks. When the logic fails, there are also two callbacks. At this time, how to use promise to solve the callback? ...
I saw a piece of code today: the label here is {[.]} there is also a code like dispatch. Is this the code of PHP? So what framework is the code for PHP? ...
problem description because there are too many queries, the paginate page that comes with TP5.0 will execute a count sql, when querying. How to specify this sql when using paginate in model related codes Please paste the code text below (do ...
how does php determine whether the URL or string contains a value in the array? For example, in the following code, when the Android in the array is placed in the first position (that is, in front of the character filter ), the normal return valu...
recently, one of the requirements of the vue project is to click to load more functions, and then Baidu sees that everyone is saving the data into an array, and then click to load (that is, to get the value of the array). there is a question here. Why d...
first of all, php set up the virtual host, then configured the address and path, and also installed wordpress, but after I entered the url address, the page did not automatically jump to the install.php page for installation, but the root directory. I wo...
a table a_id name 1 1 2 2 3 3 4 4 5 5 b table b_id name a_id 1 a 1 2 b 1 3 c 1 4 d 2 5 e 2 how to write the sql statement to query 10 pieces of data for each category find an array structure si...
{ "date":{"0":"20180201","1":"20180202","2":"20180205"}, "lines":{"0":3.3,"1":10.4,"2":79.721}, "count":{"0":5,"1":...
after installing the extension of nunjucks, when you open the template file of nunjucks, you will be prompted that there is no formatter for the nunjucks file when you format the file. how to format the template file of nunjucks? ...
my_axios[method] = function (uri, data, config) { return new Promise(function (resolve, reject) { instance[method](uri, data, config) .then((respone) => { console.log( ) if (respone.status) { resolv...
Promise.resolve() .then( value => { console.log(0); return Promise.resolve({ then() { console.log(1); } }) }) .then( value => { return Promise.resolve({ then() { console.log(2); ...
there are many cases of alt alt= "title " alt= "title " alt= "title abc " alt= "title ABC " alt= "title ABCabc " how to use the rule to get rid of all the above situations on Filter? Thank you! ...