From scratch, teach you how to use native JS+CSS3 to realize the game of fruit machine

Project experience address Free video tutorial Introduction to the game Lucky fruit machine is an arcade game. The game interface is made up of 24 squares, each of which has a different fruit figure and a small lamp. Players use the game currency to select the target they want to bet on. When they press the start button, the small lamp starts ...

Posted by thewooleymammoth on Sun, 21 Jun 2020 19:42:43 -0700

Using Vuecli (Vue scaffolding) to quickly create Vue projects

1, What is Vue cli vue cli is an official scaffold for building single page applications At present, Vuecli feels like a new project tool integrated in Idea, through which I can quickly create a project file with some basic functions. The description of scaffold is very similar. But this thing is used on the command line.   2, Install Vu ...

Posted by devang23 on Mon, 08 Jun 2020 22:02:13 -0700

The problem of 32-bit floating-point precision loss of WebGL shader in map development

The following content is reproduced from the article "WebGL shader 32-bit floating-point precision loss" of wood tree Author: tree of wood Link: https://www.cnblogs.com/dojo-lzz/p/11250327.html Source: blog Park The copyright belongs to the author. For commercial reprint, please contact the author for authorization. For non-commercia ...

Posted by dankstick on Mon, 25 May 2020 22:08:26 -0700

The 37th day of eggjs learning notes: the second part of RBAC on the rights management of the post management system of eggjs

1, Role addition, deletion, modification and query ① Create a new schema about role table, model > role.js Next new role.js , type the following code: module.exports = app => { const mongoose = app.mongoose; const Schema = mongoose.Schema; var d = new Date(); const RoleSchema = new Schema({ title: { type: String }, ...

Posted by nilansanjaya on Sun, 24 May 2020 08:29:34 -0700

The 37th day of eggjs learning notes: the second part of RBAC on the rights management of the post management system of eggjs

1, Role addition, deletion, modification and query ① Create a new schema about role table, model > role.js Next new role.js , type the following code: module.exports = app => { const mongoose = app.mongoose; const Schema = mongoose.Schema; var d = new Date(); const RoleSchema = new Schema({ title: { type: String }, ...

Posted by 555sandy on Sun, 24 May 2020 08:29:45 -0700

How to run a front-end angular project

1. Install first node.js Go to the official website to download and install: https://nodejs.org/en/ 2. Download pkg file and install it on mac 3. After the installation, verify whether it is successful at the terminal $ npm -v 6.14.4 $ node -v v12.16.3 4. Install angular console npm install -g @angular/cli This installs the comma ...

Posted by the max on Fri, 22 May 2020 07:47:19 -0700

js+css simulates receiving the data pushed by websocket to achieve the animation effect of bubbling to the top

js+css simulates receiving the data pushed by websocket to achieve the animation effect of bubbling to the top The effect is as follows: 1. The first method Ideas: 1) . define a fake floating box outside. When the data changes, delete the original data node, 2) . put the changed data in this box and move the box to the top 3) . after the box ...

Posted by saandel on Fri, 15 May 2020 08:23:28 -0700

Flitter cross platform chat instance

FlutterChat It's based on flitter + dart + Photo_ view+image_ Practical cases of wechat like interface App developed by picker and other technologies. It realizes the functions of message + expression, picture viewing, pop-up window encapsulation, red packet / video / friend circle, etc. Framework technology Coding / Technology: vscade + fl ...

Posted by amavadia on Wed, 13 May 2020 11:21:47 -0700

IView admin upload component

Manual upload of upload component If the auto upload event of the upload component is not blocked, the upload component will start to upload the file as soon as it uploads the file Set before upload and return false to prevent the default upload action set the back-end interface for upload <Upload ref="upload" :multiple="false" :befor ...

Posted by IanMartins on Tue, 12 May 2020 08:04:54 -0700

Day 29 of egg learning notes: using mongoose in eggjs

1, Mongoose in egg 1. Installing mongoose in an egg project cnpm i mongoose --save 2. Configure the eg mongoose plug-in in config > plugin.js exports.mongoose = { enable: true, package: "egg-mongoose" }; 3. Configure the database connection address in config > config.default.js config.mongoose = { client: { // url ...

Posted by abisai on Mon, 11 May 2020 10:12:07 -0700