Hello guys, good evening and welcome to Jsliang blow water channel, jsliang talk with you all night long

I have been busy with my work recently, so I will write an article tonight. This article will tell several points of view:

  • Learn to jump ship and raise salary (find a job, learn knowledge)
  • Firewood, rice, oil, salt, sauce, vinegar and tea

Write jsliang read twice, a little didactic, do not like to see this kind of small partners can quit the article, or I am also embarrassed, ha ha

Jinsanyin four job-hunting season, there is a need to push the small partner can find Jsliang, the first to push the owner Jinshan, and then there are headlines, wechat, Ali, CVTE and other big men waiting for your resume. Personal contact information is on the GitHub documentation library homepage: github.com/LiangJunron…

A directory

What’s the difference between a free front end and a salted fish

directory
A directory
Two learn to jump ship pay rise
 2.1 scenario 1
 2.2 scenario 2
 2.3 Learning Conclusions
Three firewood rice oil salt sauce vinegar tea

Two learn to jump ship pay rise

Returns the directory

Recently, I had an interesting chat with two friends. Let’s pull out the scene and have a chat:

2.1 scenario 1

Returns the directory

  • Little sister: I’m afraid I’ll change my career if I go on reviewing. I feel I can’t go on
  • Jsliang: How come, don’t you study at the same time as you interview, and then organize your materials
  • The little sister: But I feel so difficult, especially with some answersconsole.logYou don’t know how to do it
  • Jsliang: Yes, I did
  • Jsliang: Like this question, what do you try to say about printing
  • Little sister: ENm…

This is a sad point for Jsliang, who always feels that his face has hurt a group of people. Having a conclusion without a research process makes his friends lack of soul…

According to my thinking, should be to see this kind of question, think about the answer, and then the answer.

If you don’t understand, type the code on the console and try to understand why the output looks the way it does. If you still don’t understand, pull VSCode and debug.

This idea is basically clear ah, 90% of the problem is solved, if not solved, then ask around big guy (not Jsliang), can also be solved.

But little sister side review quite a long time, know that there is this problem has not solved it, I feel very anxious, whether delay somebody else.

2.2 scenario 2

Returns the directory

  • Young brother: TODAY I saw the article of XX big man, I don’t quite understand the conclusion:
3. The loading custom extensions are not covered For example: the HTMLElement. Prototype. Loading = function () {}; img = document.querySelector('[loading]'); img.loading; We extended a function named Loading on the HTMLElement prototype without affecting the loading property of the image element. The loading property of images in Chrome is still there. However, browsers that do not support loading of images, such as Firefox, are obviously affectedCopy the code
  • Jsliang: Wait, I’m not sure about this question at first sight. I will arrange it for you during lunch break at noon.

Why can’t the prototype chain override it?

  • Developer.mozilla.org/zh-CN/docs/…

First, tie the relationship: new Image() –__proto__ –> HTMLImageElement –__proto__ –> HTMLElement

It goes through the prototype chain through the HTMLImageElement and into the HTMLElement

Then, if we set its Alt property, you’ll see a problem:

HTMLElement.prototype.alt = 'jsliang' / / this OK
let img = new Image('http://www.baidu.com') / / this OK
img.alt // This step outputs an empty string
HTMLImageElement.prototype.alt = 'jsliang' Vm2840:1 Uncaught TypeError: Illegal Invocation
Copy the code

Jsliang: Although I set HTMLElement, when I called it, I first looked for the HTMLImageElement through the prototype chain. There were attributes in it, and the attributes were empty, so the prototype chain search stopped and returned.

This is one of the reasons why HTMLElement doesn’t work, and another is that HTMLImageElement doesn’t support setting its properties at all, so HTMLElement doesn’t work either.

Finally, we set another property, jsliang, to compare the problem:

HTMLElement.prototype.jsliang = 'jsliang' / / this OK
let img = new Image('http://www.baidu.com') / / this OK
img.jsliang // 'jsliang'
HTMLImageElement.prototype.jsliang // 'jsliang'
Copy the code

This means that when we set a property that HTMLImageElement doesn’t have, it’s set to HTMLImageElement via HTMLElement, so if we go to IMG, we’ll find jsliang directly there.

HTMLImageElement does not support the modification of its existing attributes (some of them do, but the Alt and loading I tested do not). No further discussion)


The reason why I want to talk about this scene is actually more hope that when you have doubts about a conclusion of certain big man, you can try to solve it through various means, rather than necessarily “integrate” into the problem.

Assuming the “conclusion” to be correct will kill a lot of people.

Similarly, the face sutra written by jsliang should be read critically.

Sometimes writing an interview, after a few months, a friend put forward a problem in the code part of a certain topic, and then check it really is!

So I look at the scattered likes (a hundred or so) and thousands of views on blogs, and I wonder what the people in front of me are saying.

Is it a habit to praise before seeing?

2.3 Learning Conclusions

Returns the directory

One kind of learning attitude that I highly recommend is:

  • Determine the problem
  • Think about the answer first
  • Check the answer again
  • Scrolling through similar search results without understanding
  • Try typing or debugging
  • No idea, ask the big guy
  • Take notes for your next review

Before you ask a question, describe it clearly:

  • Big guy, I have a problem with XX
  • Then I thought it might be out of XX, XX
  • I tried XX method (stickers, show code)
  • But failed, I would like to ask you which part of the problem is, do you have a solution?

Similarly, this style of questioning can be used to manage upward at work:

  • Team leader, the product says it’s doing a feature
  • Then I searched the information and found XX and XX plan
  • I tried XX and I think it’s a good one
  • I want to use this plan, do you have any suggestions

This is a good suggestion from my Boss. You should not let the leader make a plan, but let the leader choose a plan. Otherwise, we will recruit you to do something.

Three firewood rice oil salt sauce vinegar tea

Returns the directory

Numbed by the questions, some people still asked:

  • Why don’t you get a girl
  • I wonder why you haven’t saved any money

The first question is, am I not looking? Can’t find it! Jsliang is ugly, fat and poor, bad-tempered, self-abased and unable to talk, so I can’t find the girl despise me, very reasonable explanation ~

The second question, Jsliang still wants to discuss, the big guy who has rice at home can also comment and ridicule:

  • Jsliang has saved 3W yuan in the past 3 years

It’s true, there are always some expenses in life, and then you spend the money you should have, like the first year of your first job 5.5K, then you get 4.8K, 1K more rent, 1K more food and drink, monthly transportation, occasionally get together, buy furniture, buy a 7K computer, replace a 2k phone… There really isn’t much at the end.

Thinking about thinking about the mind only a consciousness: do how many years to make a guangzhou, Shenzhen, Huizhou these areas of the down payment, now 26, to 30 can become?

Don’t look at the way I get my money.

  • Public number several hundred AD fee every month
  • Cloud Server promotion
  • Hair implants to promote
  • Red wine promotion

But I compare Buddha, did not do, basic follow fate.

There is also want to do some work, in the post to contribute a fire.

So there is no money, although there are channels.

Also don’t know to send this will not be sealed article, make fun of, can see see, can’t see again?

Thick sorrow, scattered endless sorrow, firmly believe that one day can also win a lottery near a rich woman?

In fact, I still want to be down-to-earth, just like Jsliang has scheduled the learning plan to 2022, waiting for gradual practice.

It’s not that we don’t want to think about the details, but that we believe we can get there.


By the way, jinsanyin four job-hunting season, there is a need to push partners can find Jsliang, the first to push the owner Jinshan, and then there are headlines, wechat, Ali, CVTE and other big guys waiting for you resume.

Personal contact information is on the GitHub documentation library homepage: github.com/LiangJunron…


Jsliang’s document library is licensed by Junrong Liang under the Creative Commons Attribution – Non-commercial – Share alike 4.0 International License. Based on the github.com/LiangJunron… On the creation of works. Outside of this license agreement authorized access can be from creativecommons.org/licenses/by… Obtained.