xgqfrms / FEIQA

FEIQA: Front End Interviews Question & Answers
https://feiqa.xgqfrms.xyz
MIT License
6 stars 0 forks source link

register form checker sync #65

Open xgqfrms opened 5 years ago

xgqfrms commented 5 years ago

register form checker sync

in time & in no time

实时校验

https://coding.net/register

image

xgqfrms commented 5 years ago

password & Encryption

https://dev.tencent.com/login

image

xgqfrms commented 5 years ago

VS code 插件

Cloud Studio 优秀插件一览 | 附源码

https://zhuanlan.zhihu.com/p/51001352 https://studio.dev.tencent.com/plugins/detail/369

xgqfrms commented 5 years ago

https://github.com/Microsoft/vscode https://github.com/Microsoft/TypeScript

https://microsoft.github.io/monaco-editor/ https://github.com/Microsoft/monaco-editor

xgqfrms commented 5 years ago

how to get window height in javascript

https://stackoverflow.com/questions/3012668/get-the-window-height https://stackoverflow.com/questions/1145850/how-to-get-height-of-entire-document-with-javascript

window 1366x768


// 屏幕宽高
window.outerWidth;
// 1366
window.outerHeight;
// 728 === 768 - 40

// 实际宽高
window.innerWidth;
// 974 / 1366
window.innerHeight;
// 657 / 270

document.documentElement.clientWidth;
// 957 / 1349
document.documentElement.clientHeight;
// 657 / 270
document.documentElement.scrollHeight;
// 4482 / 2893

document.body.clientHeight;
document.body.offsetHeight;
document.body.scrollHeight;
// 4638 / 3485

document.body.clientWidth;
document.body.offsetWidth;
document.body.scrollWidth;
// 957 / 1349

var body = document.body,
    html = document.documentElement;

var height = Math.max(
    body.scrollHeight,
    body.offsetHeight,
    html.clientHeight,
    html.scrollHeight,
    html.offsetHeight
);

http://ryanve.com/lab/dimensions/

https://stackoverflow.com/questions/3012668/get-the-window-height

https://www.w3schools.com/jsref/prop_element_scrollheight.asp https://www.w3schools.com/jsref/prop_win_innerheight.asp

xgqfrms commented 5 years ago

https://zhuanlan.zhihu.com/p/25279069

https://www.cnblogs.com/xgqfrms/p/6408181.html

https://www.cnblogs.com/xgqfrms/p/10076517.html

xgqfrms commented 5 years ago

https://github.com/xyz-data/RAIO/issues/229 https://github.com/xyz-data/RAIO/issues/265#issuecomment-351926340



var clientHeight = document.getElementById('myDiv').clientHeight;

// or

var offsetHeight = document.getElementById('myDiv').offsetHeight;

MDN

https://developer.mozilla.org/zh-CN/docs/Web/API/Window/getComputedStyle

clientHeight & clientWidth

https://developer.mozilla.org/en-US/docs/Web/API/Element/clientHeight https://developer.mozilla.org/en-US/docs/Web/API/Element/clientWidth

https://developer.mozilla.org/zh-CN/docs/Web/API/Element/scrollHeight

offsetHeight & offsetWidth

https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetWidth

xgqfrms commented 5 years ago

shit vue

vue.esm.js?efeb:1741 TypeError: Object(...) is not a function

https://stackoverflow.com/questions/4026891/javascript-uncaught-typeerror-object-is-not-a-function-associativity-question

image

shit error info

import path error

import { emptykeysFilter, getDOMMaxSize } from "../user-management/utils";

import { emptykeysFilter, getDOMMaxSize } from "./utils";


ASI

Automatic Semicolon Insertion (ASI)

https://stackoverflow.com/questions/2846283/what-are-the-rules-for-javascripts-automatic-semicolon-insertion-asi

https://codepen.io/webgeeker/pen/rQEbvZ

OK

;


    document.getElementById("test")
        .addEventListener("click", function() {
            test()
        }, false)

    function test() {
        var postTypes = new Array('hello', 'there');
        (function() {
            alert('hello there');
        })();
    }

Error

asi.html:32 Uncaught TypeError: (intermediate value) is not a function

    document.getElementById("test")
        .addEventListener("click", function() {
            test()
        }, false)

    function test() {
        var postTypes = new Array('hello', 'there')
            (function() {
                alert('hello there')
            })()
    }
xgqfrms commented 5 years ago

https://airbrake.io/blog/javascript-error-handling/x-is-not-a-function-typeerror https://stackoverflow.com/questions/38748445/uncaught-typeerror-object-values-is-not-a-function-javascript

https://stackoverflow.com/questions/34633323/typeerror-this-set-is-not-a-function

xgqfrms commented 5 years ago

MySQL & mysqldump

https://www.cnblogs.com/xgqfrms/p/10078371.html

image