Ferro's Gitbook
  • README
  • DevOps
    • Grafana_Cloud
  • OpenWrt
    • DHCP_DNS
    • GLiNet
    • boot
    • captive_portal
    • luci
    • mwan3
    • radius
    • theme
    • wireless
  • apps
    • web
  • BSD
    • Mac
  • Cloud
    • aws
    • azure
    • cf
    • gcp
    • github
    • ibm_bluemix
    • Pricing
  • container
    • docker
    • Kubernetes
    • podman
  • db
    • InfluxDB
    • loki
    • MySQL & MariaDB
    • Oracle
    • PostgreSQL
  • dev
    • AHK
    • BI
    • LBS
    • ML
    • android
    • editor
    • flutter_web
    • git
    • go
    • HTML5/BS
    • j2ee
    • js
    • js_grid
    • js_vue
    • jupyter
    • ocaml
    • powershell
    • py
    • py_GUI
    • Django
    • shell
    • snippets
    • uni
    • vba
    • wechat.zh
    • wechat_mp.zh
  • elec
    • 3D Printing
    • AC
    • MOSFET
    • battery
    • boost
    • bulk
    • metal
    • simulator
  • hw
    • GPU
    • PCI
    • arduino
    • Bluetooth
    • ent
    • Pinout
    • x86_AMD
    • x86_intel
  • linux
    • Test System
    • X
    • arch
    • fs
    • kernel
    • Memory
    • nw
    • Linux Services
    • Systemd
    • text
  • ms
    • vscode
    • windows
    • wsl
  • multimedia
    • Blender
    • audio
    • blender
    • graphics
    • home
  • nw
    • L3
    • L3_IPv6
    • SDN
    • VPN
    • dns
    • hw
    • Low Level
    • mikrotik
    • mwan
    • Openflow
    • OVS
    • pfsense
    • ppp
    • proxy
    • tsocks
    • pxe
    • Security
    • TCP
  • phone
    • Mi
    • android
  • Storage(SW)
  • vt
    • Intel GVT-g
    • PVE
    • QEMU
    • VDI
    • hyper-v
    • kube
    • libvirt
    • OpenStack
  • Web
    • IBM_MQ
    • IBM_Websphere
    • SSL
    • Apache/IBM_IHS
    • blockchain
    • caddy
    • j2ee
    • nginx
    • static_site
Powered by GitBook
On this page
  • Frameworks
  • Basic
  • text
  • export & import
  • this
  • IIFE (Immediately Invokable Function Expression)
  • Chrome Cross origin requests
  • pdf.js
  • JQuery
  • events
  • JSX
  • MDX
  • node
  • Version Manager

Was this helpful?

Edit on Git
  1. dev

js

Previousj2eeNextjs_grid

Last updated 1 year ago

Was this helpful?

Frameworks

  • Vue: https://nuxtjs.org/

  • React: https://nextjs.org/

Basic

text

if ("ab"+"c".includes("bc")) { t="_3"; console.log(`t${t}`.replace(/\d/, "").length); } else if (true) {} else { } // Out: 2

export & import

  • https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export

  • https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import

    the default export can be imported with any name

    export default k; // file test.js import anyName from "./test";

this

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this

const test = {
  prop: 42,
  func: function() {
    return this.prop;
  },
};

IIFE (Immediately Invokable Function Expression)

(function() {
    statements
})();

Chrome Cross origin requests

Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

pdf.js

https://github.com/mozilla/pdf.js/tree/master/examples/helloworld

JQuery

events

http://api.jquery.com/category/events/

JSX

an XML-like syntax extension to ECMAScript without any defined semantics: https://facebook.github.io/jsx/ const element = <h1>Hello, world!</h1>;: https://zh-hans.reactjs.org/docs/introducing-jsx.html

MDX

JSX + Markdown: https://mdxjs.com/docs/what-is-mdx/

node

Version Manager

volta

https://volta.sh/

curl https://get.volta.sh | bash
volta list
volta install node@18

nvm

https://github.com/nvm-sh/nvm

Schedule

Frameworks
Basic
text
export & import
the default export can be imported with any name
this
IIFE (Immediately Invokable Function Expression)
Chrome Cross origin requests
pdf.js
JQuery
events
JSX
MDX
node
Version Manager
volta
nvm