Tag:works

  • Heavy weight! Heavy weight! Masonite 3.0 is out!!

    Time:2021-3-2

    github.com/MasoniteFramework/mason… pypi.org/project/masonite/ docs.masoniteproject.com/ Add ORM to replace previous Oracleorm.masoniteproject.com/ The author updates GitHub very quickly, just like laravel, the update speed is very fast. This work adoptsCC agreementReprint must indicate the author and the link of this article

  • move file

    Time:2021-2-22

    Do you have trouble moving files? Recursively moves a file with a specified file suffix import os This work adoptsCC agreementReprint must indicate the author and the link of this article If I can, I want to be light

  • How to exchange the values of two variables without using temporary variables.

    Time:2021-2-18

    $a = 1; $b = 2; list($b,$a) = [$a,$b]; //This line is useful. Don’t look at the rest. echo $a; echo $b; Finish the work. This work adoptsCC agreementReprint must indicate the author and the link of this article

  • Static properties and methods of class

    Time:2021-2-16

    <?php class DemoStatic { public static $number = 1; public static function echoNumber() { echo self::$number; } public static function testFunc() { return self::echoNumber(); } } DemoStatic::testFunc(); This work adoptsCC agreementReprint must indicate the author and the link of this article

  • 1. Find sibling elements

    Time:2021-2-16

    Making navigation display submenu with JS HTML: about skill works works1 works2 works3 Blog Blog1 Blog2 Blog3 calendar contact information other     JS: let aTages = document.getElementsByClassName(‘menutrigger’) console.log(aTages) for(let i = 0; i < aTages.length; i++){ aTages[i].onmouseenter = function(x){ console.log(‘mouseenter’) Let a = x.currenttarget // here, we don’t use x.target or atages [i] because […]

  • ArrayAccess

    Time:2021-2-14

    <?php class DemoArray implements ArrayAccess { private $container = []; public function __construct() { $this->container = [ “one” => 1, “two” => 2, “three” => 3, ]; } public function offsetSet($offset, $value) { if (is_null($offset)){ $this->container[] = $value; } else { $this->container[$offset] = $value; } } public function offsetExists($offset) { return isset($this->container[$offset]); } public function […]

  • What kind of open source project based on hyperf is more challenging or can you exercise your code ability?

    Time:2021-2-12

    Also want to improve their technical ability! This work adoptsCC agreementReprint must indicate the author and the link of this article

  • Goproxy configuration

    Time:2021-2-11

    Alicloud export GOPROXY=mirrors.aliyun.com/goproxy/ go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.io,direct This work adoptsCC agreementReprint must indicate the author and the link of this article

  • Svelte running error getaddrinfo enotfound localhost

    Time:2021-2-8

    Svelte running error getaddrinfo enotfound localhost After installing svelte, NPM run dev events.js:292 throw er; // Unhandled ‘error’ event ^ Error: getaddrinfo ENOTFOUND localhost at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26) Emitted ‘error’ event on Server instance at: at GetAddrInfoReqWrap.doListen [as callback] (net.js:1495:12) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:17) { errno: ‘ENOTFOUND’, code: ‘ENOTFOUND’, syscall: ‘getaddrinfo’, hostname: ‘localhost’ […]

  • The slow way to insert MySQL into InnoDB_ flush_ log_ at_ trx_ The meaning of commit parameter

    Time:2021-2-2

    Too lazy to write, the world article copy! Here’s a picture of someone stealing electricity mysql This work adoptsCC agreementReprint must indicate the author and the link of this article Hu Jun

  • Share an elementui application framework

    Time:2021-1-29

    Document addressWelcome This work adoptsCC agreementReprint must indicate the author and the link of this article

  • Iterator & foreach

    Time:2021-1-26

    <?php class Traverable { } abstract class Iterator extends Traverable { abstract public function current(); abstract public function key(); abstract public function next(); abstract public function rewind(); abstract public function valid(); } class myIterator implements Iterator { private $position = 0; private $array = [ “firstelement”, “secondelement”, “lastelement”, ]; public function __construct() { $this->position = […]