更改Google Chrome 用户文件存储目录User Data 最简单方法
当前位置正文更改Google Chrome 用户文件存储目录User Data 最简单方法 1.在你想要存放数据的盘符下创建文件夹,假设为E:\Google\Chrome 2.把已经存在的User Data数据复制到E:\Google\Chrome中 3.开始->附件->命令提示符(右键以管理员身份运行) 4.输入CD C:\Users\你的用户名\AppData\Local\Google\Chrome 5.输入RMDIR /S “User Data”,提示是否删除输入Y 6.输入MKLINK /J “User Data” “E:\Google\Chrome” 7.重启浏览器,大功告成。
a16z领投3000万美元的去中心化社交协议Farcaster教程
Step 1: 设置环境在编写代码之前,您需要设置一个 Node.js 环境,推荐使用 replit ,它是一个基于 IDE 进行编程的浏览器。 1.在 repli 上注册一个免费帐户并登录; 2.点击左上角的create创建;3.出现提示时选择 Node.js,然后点击Create Repl。还需要一个以太坊节点来与 Facaster Registry 合约对话。 建议使用 Alchemy 。 如果您是第一次注册,以下步骤可能会略有不同: 1.注册 Alchemy.com ,并登录。2.选择以太坊作为区块链,点击get started。3.team name和app name随便取,网络选择Rinkeby,点击Create APP。4.选择第一个免费的,点击continue。5.点击跳过。6.继续点击跳过。7.点击continue。8.随便输入什么,点击let‘s go。9.点击view details。10.点击view key。11.找到HTTP的URL,复制v2/后面那部分代码,将其保存在某个地方。12.切换回 Replit 并转到右侧窗格中的 Shell 选项卡并运行以...
更改Google Chrome 用户文件存储目录User Data 最简单方法
当前位置正文更改Google Chrome 用户文件存储目录User Data 最简单方法 1.在你想要存放数据的盘符下创建文件夹,假设为E:\Google\Chrome 2.把已经存在的User Data数据复制到E:\Google\Chrome中 3.开始->附件->命令提示符(右键以管理员身份运行) 4.输入CD C:\Users\你的用户名\AppData\Local\Google\Chrome 5.输入RMDIR /S “User Data”,提示是否删除输入Y 6.输入MKLINK /J “User Data” “E:\Google\Chrome” 7.重启浏览器,大功告成。
a16z领投3000万美元的去中心化社交协议Farcaster教程
Step 1: 设置环境在编写代码之前,您需要设置一个 Node.js 环境,推荐使用 replit ,它是一个基于 IDE 进行编程的浏览器。 1.在 repli 上注册一个免费帐户并登录; 2.点击左上角的create创建;3.出现提示时选择 Node.js,然后点击Create Repl。还需要一个以太坊节点来与 Facaster Registry 合约对话。 建议使用 Alchemy 。 如果您是第一次注册,以下步骤可能会略有不同: 1.注册 Alchemy.com ,并登录。2.选择以太坊作为区块链,点击get started。3.team name和app name随便取,网络选择Rinkeby,点击Create APP。4.选择第一个免费的,点击continue。5.点击跳过。6.继续点击跳过。7.点击continue。8.随便输入什么,点击let‘s go。9.点击view details。10.点击view key。11.找到HTTP的URL,复制v2/后面那部分代码,将其保存在某个地方。12.切换回 Replit 并转到右侧窗格中的 Shell 选项卡并运行以...

Subscribe to andrecronje

Subscribe to andrecronje
Share Dialog
Share Dialog
<100 subscribers
<100 subscribers
估值102亿融资5.45亿的Alchemy 项目,大学每周任务逐步开始。持有大学生早期卡的地址可以进入以下官网,开始大学生活:
这一期我们学习JS 第一周的最后一块内容,Classes & Prototypes。
1: Using This
查看要求,创建一个函数来检索 this 上的属性名称:

function thisName() {
return this.name;
}
module.exports = thisName;
点击运行。
2: Binding This
查看要求:

输入:
function thisName() {
return this.name;
}
const newFunction = thisName.bind({ name: 'Bob' });
module.exports = newFunction;
点击运行。
3: Implicit Binding
查看要求,将函数 getName 添加到 obj 中,该函数将在对象上调用时检索名称:

输入:
const obj = {
name: 'Bob',
getName: function() {
return this.name;
}
}
module.exports = obj;
点击运行。
4: Unbound Function
查看要求:

输入:
const fetchAge = require('./fetchAge');
function Celebrity(name) {
this.name = name;
const that = this;
fetchAge(this.name, function (age) {
that.age = age;
});
}
module.exports = Celebrity;
点击运行。
1: Taking Shape
查看要求:

输入:
// Our Shape "Constructor"
function Shape(x, y) {
// store x and y in this.position
this.position = {x, y};
this.position.x = x;
this.position.y = y;
}
module.exports = Shape;
点击运行。
2: Move Shape
查看要求:

输入:
// Our Shape "Constructor"
function Shape(x, y) {
this.position = {x, y};
this.position.x = x;
this.position.y = y;
}
Shape.prototype.move = function(a, b) {
this.position.x += a;
this.position.y += b;
}
module.exports = Shape;
3: Circle Shape
查看要求:

输入:
const Shape = require('./Shape');
function Circle(x, y, radius) {
Shape.call(this, x, y);
this.radius = radius;
}
module.exports = Circle;
点击运行。
4: Move Circle
查看要求:

输入:
const Shape = require('./Shape');
function Circle(x, y, radius) {
Shape.call(this, x, y);
this.radius = radius;
Circle.prototype = Object.create(Shape.prototype);
}
module.exports = Circle;
5: Rectangle
查看要求:

输入:
const Shape = require('./Shape');
function Rectangle(x, y, height, width) {
Shape.call(this, x, y);
this.height = height;
this.width = width;
Rectangle.prototype = Object.create(Shape.prototype);
}
module.exports = Rectangle;
6: Rectangle Flip
查看要求:

输入:
const Shape = require('./Shape');
function Rectangle(x, y, height, width) {
Shape.call(this, x, y);
this.height = height;
this.width = width;
Rectangle.prototype = Object.create(Shape.prototype);
Rectangle.prototype.flip = function() {
let t = this.width;
this.width = this.height;
this.height = t;
}
}
module.exports = Rectangle;
1: Hero
查看要求:

输入:
class Hero {
constructor() {
this.health = 50;
}
}
module.exports = Hero;
点击运行。
2: Take Damage
查看要求:

输入
class Hero {
constructor() {
this.health = 50;
}
takeDamage(health) {
this.health -= health;
}
}
module.exports = Hero;
点击运行。
3: Warrior
查看要求:

输入:
const Hero = require('./Hero');
class Warrior extends Hero {
}
module.exports = Warrior;
点击运行。
4: Super Warrior
查看要求:

输入:
const Hero = require('./Hero');
class Warrior extends Hero {
constructor() {
super();
this.rage = 0;
}
}
module.exports = Warrior;
点击运行。
5: Building Rage
查看要求:

输入:
const Hero = require('./Hero');
class Warrior extends Hero {
constructor() {
super();
this.rage = 0;
}
takeDamage(health) {
this.rage = this.rage + 1;
super.takeDamage(health);
}
}
module.exports = Warrior;
点击运行。
6: Passing Health

这里注意要改两个地方:
1.

const Hero = require('./Hero');
class Warrior extends Hero {
constructor(health) {
super(health);
this.rage = 0;
}
takeDamage(health) {
this.rage += 1;
super.takeDamage(health);
}
}
module.exports = Warrior;
2.

class Hero {
constructor(health) {
this.health = health;
}
takeDamage(health) {
this.health = this.health - health;
}
}
module.exports = Hero;
点击运行。
以上JS 的第一周课程学习结束。
未完待续……
了解更多,请关注作者:https://twitter.com/bitc2024
估值102亿融资5.45亿的Alchemy 项目,大学每周任务逐步开始。持有大学生早期卡的地址可以进入以下官网,开始大学生活:
这一期我们学习JS 第一周的最后一块内容,Classes & Prototypes。
1: Using This
查看要求,创建一个函数来检索 this 上的属性名称:

function thisName() {
return this.name;
}
module.exports = thisName;
点击运行。
2: Binding This
查看要求:

输入:
function thisName() {
return this.name;
}
const newFunction = thisName.bind({ name: 'Bob' });
module.exports = newFunction;
点击运行。
3: Implicit Binding
查看要求,将函数 getName 添加到 obj 中,该函数将在对象上调用时检索名称:

输入:
const obj = {
name: 'Bob',
getName: function() {
return this.name;
}
}
module.exports = obj;
点击运行。
4: Unbound Function
查看要求:

输入:
const fetchAge = require('./fetchAge');
function Celebrity(name) {
this.name = name;
const that = this;
fetchAge(this.name, function (age) {
that.age = age;
});
}
module.exports = Celebrity;
点击运行。
1: Taking Shape
查看要求:

输入:
// Our Shape "Constructor"
function Shape(x, y) {
// store x and y in this.position
this.position = {x, y};
this.position.x = x;
this.position.y = y;
}
module.exports = Shape;
点击运行。
2: Move Shape
查看要求:

输入:
// Our Shape "Constructor"
function Shape(x, y) {
this.position = {x, y};
this.position.x = x;
this.position.y = y;
}
Shape.prototype.move = function(a, b) {
this.position.x += a;
this.position.y += b;
}
module.exports = Shape;
3: Circle Shape
查看要求:

输入:
const Shape = require('./Shape');
function Circle(x, y, radius) {
Shape.call(this, x, y);
this.radius = radius;
}
module.exports = Circle;
点击运行。
4: Move Circle
查看要求:

输入:
const Shape = require('./Shape');
function Circle(x, y, radius) {
Shape.call(this, x, y);
this.radius = radius;
Circle.prototype = Object.create(Shape.prototype);
}
module.exports = Circle;
5: Rectangle
查看要求:

输入:
const Shape = require('./Shape');
function Rectangle(x, y, height, width) {
Shape.call(this, x, y);
this.height = height;
this.width = width;
Rectangle.prototype = Object.create(Shape.prototype);
}
module.exports = Rectangle;
6: Rectangle Flip
查看要求:

输入:
const Shape = require('./Shape');
function Rectangle(x, y, height, width) {
Shape.call(this, x, y);
this.height = height;
this.width = width;
Rectangle.prototype = Object.create(Shape.prototype);
Rectangle.prototype.flip = function() {
let t = this.width;
this.width = this.height;
this.height = t;
}
}
module.exports = Rectangle;
1: Hero
查看要求:

输入:
class Hero {
constructor() {
this.health = 50;
}
}
module.exports = Hero;
点击运行。
2: Take Damage
查看要求:

输入
class Hero {
constructor() {
this.health = 50;
}
takeDamage(health) {
this.health -= health;
}
}
module.exports = Hero;
点击运行。
3: Warrior
查看要求:

输入:
const Hero = require('./Hero');
class Warrior extends Hero {
}
module.exports = Warrior;
点击运行。
4: Super Warrior
查看要求:

输入:
const Hero = require('./Hero');
class Warrior extends Hero {
constructor() {
super();
this.rage = 0;
}
}
module.exports = Warrior;
点击运行。
5: Building Rage
查看要求:

输入:
const Hero = require('./Hero');
class Warrior extends Hero {
constructor() {
super();
this.rage = 0;
}
takeDamage(health) {
this.rage = this.rage + 1;
super.takeDamage(health);
}
}
module.exports = Warrior;
点击运行。
6: Passing Health

这里注意要改两个地方:
1.

const Hero = require('./Hero');
class Warrior extends Hero {
constructor(health) {
super(health);
this.rage = 0;
}
takeDamage(health) {
this.rage += 1;
super.takeDamage(health);
}
}
module.exports = Warrior;
2.

class Hero {
constructor(health) {
this.health = health;
}
takeDamage(health) {
this.health = this.health - health;
}
}
module.exports = Hero;
点击运行。
以上JS 的第一周课程学习结束。
未完待续……
了解更多,请关注作者:https://twitter.com/bitc2024
No activity yet