iris2008 / iris2008.github.io

My Hexo Blog
0 stars 0 forks source link

Javascript | Hexo #4

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Javascript | Hexo

My NotesMap objectThe map is special compare to the others . You cannot call JSON.springify in console.log to show the contents. You could use forEach of the map or use map.size to just show count of

https://iris2008.github.io/2020/12/16/Javascript/

iris2008 commented 3 years ago

Working Thread

iris2008 commented 3 years ago

RESTful service

Create — POST Read/Retrieve — GET Update — PUT/PATCH ( PATCH is to only update some of the object) Delete — DELETE

iris2008 commented 3 years ago

Array concat and push

Be careful about array.push and array.concat, sometimes you really want is concat instead of push

const array1 = ['a', 'b', 'c'];
const array2 = ['d', 'e', 'f'];
const array3 = array1.concat(array2);

console.log(array3);
// expected output: Array ["a", "b", "c", "d", "e", "f"]
iris2008 commented 3 years ago

bmoChequingAccountDeal

iris2008 commented 3 years ago

test local edit