01 2021 档案
摘要:SQL Query aggregate may not appear in WHERE clause 错误的写法 SELECT StartDate, ClientID, COUNT(1) AS Total FROM dbo.tbm_cti_CustomTableItem_BudgetPeriod W
阅读全文
摘要:Is there any difference between GROUP BY and DISTINCT 问题 I learned something simple about SQL the other day: SELECT c FROM myTbl GROUP BY C Has the sa
阅读全文
摘要:How to load local static files if CDN fails without using document.write()? You should listen to the onerror event, if it occurs then load the local o
阅读全文
摘要:Split your Webpack configuration for development and production 另外可以参考vue的webpack的template项目
阅读全文
摘要:https://www.jiangruitao.com/babel/transform-runtime/ 还有一个webpack的教程 https://www.jiangruitao.com/webpack/
阅读全文
摘要:Difference between npx and npm? Introducing npx: an npm package runner NPM - Manages packages but doesn't make life easy executing any. NPX - A tool f
阅读全文
摘要:Cannot find module '@babel/core' Try running this. npm install @babel/core --save babel changed their package so your babel-core will not be the same
阅读全文
摘要:Getting “Error: `output.path` needs to be an absolute path or `/`” As the error message says, you need to use absolute path. To get an absolute path f
阅读全文
摘要:整理几个被遗忘的js基础代码题,还都能答对吗? 我们每个人面试的时候,面试官都会问一些js基础的概念。比如说说你对闭包的理解,说说你对原型和原型链的理解,作用域和作用域链的理解,var、let、const的区别、promise的理解等等,相信这些概念性的东西,我们都能回答个八九不离十。 但如果面试官
阅读全文
摘要:MDN Web Docs Glossary: Definitions of Web-related terms Hoisting Hoisting is a term you will not find used in any normative规范的,标准的 specification prose
阅读全文
摘要:What is the scope of variables in JavaScript? What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a
阅读全文
摘要:@babel/polyfill 🚨 As of Babel 7.4.0, this package has been deprecated in favor of directly including core-js/stable (to polyfill ECMAScript features)
阅读全文
摘要:JavaScript Versions JavaScript was invented by Brendan Eich in 1995, and became an ECMA standard in 1997. ECMAScript is the official name of the langu
阅读全文
摘要:What is the difference between --save and --save-dev? What is the difference between: npm install [package_name] and: npm install [package_name] --sav
阅读全文
摘要:npm install webpack@2.2.1 -Dnpm install lodash@4.17.4 -Snpm install del-cli@0.2.1 -D npm i -D babel-core@6.22.1 babel-loader@6.2.10 babel-preset-es201
阅读全文
摘要:Webpack Tutorial: Understanding How it Works This Webpack tutorial is my attempt to document what I learnt and is the blog I wish I’d found when I fir
阅读全文
摘要:How to use Babel without Webpack You can simply run babel through the command line: babel --plugins transform-react-jsx-source script.js Docs: https:/
阅读全文
摘要:babel-loader This package allows transpiling JavaScript files using Babel and webpack. Note: Issues with the output should be reported on the Babel Is
阅读全文
摘要:Babel is a JavaScript compiler. Learn more about Babel with our getting started guide or check out some videos on the people and concepts behind it. W
阅读全文
摘要:Compiling vs Transpiling While searching about the difference, I came across these definitions: Compiling is the general term for taking source code w
阅读全文
摘要:Why doesn't this arrow function work in IE 11? Below piece of code does not work in IE 11, it throws a syntax error in the console g.selectAll(".mainB
阅读全文
摘要:In TortoiseGit, which one is MERGE_HEAD and which one is HEAD? They are both local (this is important, albeit not very helpful :-) ). HEAD is your cur
阅读全文
摘要:是怎么定义的 function removeAllVotes(){ var a = $(
阅读全文
摘要:How can I select an element with multiple classes in jQuery? I want to select all the elements that have the two classes a and b. <element class="a b"
阅读全文
摘要:Variable inside setTimeout says it is undefined, but when outside it is defined [duplicate] The reason for this is that the callback function inside s
阅读全文
摘要:How can I pass a parameter to a setTimeout() callback? I have some JavaScript code that looks like: function statechangedPostQuestion() { //alert("sta
阅读全文
摘要:Js: setTimeOut without function argument? Why do we need to pass a function to Javascript setTimeOut https://developer.mozilla.org/en-US/docs/Web/API/
阅读全文
摘要:HTTP request smuggling In this section, we'll explain HTTP request smuggling attacks and describe how common request smuggling vulnerabilities can ari
阅读全文
摘要:Do you really know CSS linear-gradients? 你真的理解CSS的linear-gradient? 工具 https://www.imgcook.com/docs
阅读全文
摘要:Populating the page: how browsers work How the browser renders a web page? — DOM, CSSOM, and Rendering How browser rendering works — behind the scenes
阅读全文
摘要:System.Security.SecurityException when writing to Event Log 回答1 To give Network Service read permission on the EventLog/Security key (as suggested by
阅读全文
摘要:4010 An unhandled security exception has occurred. IIS 8.5 回答1 I had this issue today and it was due to my asp.net application wanting to write to the
阅读全文
摘要:How to make a grid (like graph paper grid) with just css? To make grids you can use CSS gradients, which work on all modern browsers (see Caniuse). Us
阅读全文
摘要:difference between width auto and width 100 percent Previously my assumption about width: auto was that the width is set to that of the contents. Now
阅读全文
摘要:What is greater-than sign (>) selector in CSS? The greater than sign (>) selector in CSS is used to select the element with a specific parent. It is c
阅读全文
摘要:How do I prevent .NET 4.7.1 libraries from copying the facade dlls to the bin folder? Kentico 11 can only target up to .NET 4.7 so in an attempt to fu
阅读全文
摘要:What is a DLL This article describes what a dynamic link library (DLL) is and the various issues that may occur when you use DLLs. It also describes s
阅读全文
摘要:IdentityServer4 官方文档 IdentityServer4 源码 使用Identity Server 4建立Authorization Server (4) IdentityServer4 知多少
阅读全文
摘要:Cannot open Visual Studio - throw error 'cannot run when setup is in progress' I had this problem with Visual Studio 2017. There were processes in Tas
阅读全文
摘要:探秘 flex 上下文中神奇的自动 margin 一篇文章弄懂flex布局 阮一峰 Flex 布局教程:语法篇 Flex 布局教程:实例篇 flex弹性布局学习笔记 MDN CSS Flexible Box Layout
阅读全文
摘要:Introduction to the CSS basic box model When laying out a document, the browser's rendering engine represents each element as a rectangular box accord
阅读全文
摘要:Why aren't two border-box 50% divs side-by-side? [duplicate] Because div elements are display: block by default (that is, one element per row/line). Y
阅读全文
摘要:CSS display: inline vs inline-block [duplicate] In CSS, display can have values of inline and inline-block. Can anyone explain in detail the differenc
阅读全文
摘要:Changing the color of an hr element I want to change the color of my hr tag using CSS. The code I've tried below doesn't seem to work: hr { color: #12
阅读全文
摘要:horizontal line and right way to code it in html, css I need to draw a horizontal line after some block, and I have three ways to do it: 1) Define a c
阅读全文
摘要:Inline vs. block-level elements: a demonstration HTML (Hypertext Markup Language) elements historically were categorized as either "block-level" eleme
阅读全文
摘要:How wide is the default `<body>` margin? What’s the default margin that HTML sets for its <body> tag? I noticed that there’s some automatic margin, bu
阅读全文
摘要:Getting wrong Version from Assembly using Reflection dotpeek does not have any magic here. It's just a very-very confusing name and behavior for Assem
阅读全文
摘要:Where is the default size of a div element defined or calculated? I wonder how a browser calculates the initial height and width values for div elemen
阅读全文
摘要:Why padding is included in height sometimes? That depends on what box-sizing attribute you have used: border-box means that the height and width of th
阅读全文
摘要:Event reference DOM Events are sent to notify code of interesting things that have taken place. Each event is represented by an object which is based
阅读全文
摘要:Examine Event Listeners(Firefox) firefox只显示事件本来所处的元素上,不会在子元素上显示 What is event bubbling and capturing? How to find Event Listeners on a DOM Node when D
阅读全文
摘要:What Causes Stock Prices to Change? Stock prices change everyday by market forces. By this we mean that share prices change because of supply and dema
阅读全文
摘要:Declaring variables without var keyword At w3schools there is written: If you declare a variable, without using "var", the variable always becomes GLO
阅读全文
摘要:Do I have to return something in javascript function? No; Javascript functions are not required to return a value. If you call a function that doesn't
阅读全文
摘要:先用Fiddler抓取request请求 DELETE https://www.zhihu.com/api/v4/answers/1591480574 HTTP/1.1Host: www.zhihu.comConnection: keep-alivex-zst-81: 3_2.0ae3TnRUTEv
阅读全文
摘要:Tasks, microtasks, queues and schedules When I told my colleague Matt Gaunt I was thinking of writing a piece on microtask queueing and execution with
阅读全文
摘要:What does $(function() {} ); do? Sometimes I make a function and call the function later. Example: function example { alert('example'); } example(); /
阅读全文
摘要:What is a regex to match ONLY an empty string? 回答1 I would use a negative lookahead for any character: ^(?![\s\S]) This can only match if the input is
阅读全文
摘要:Javascript中prototype属性详解 深入理解Javascript中构造函数和原型对象的区别 https://github.com/mqyqingfeng/Blog/issues/2 Use of 'prototype' vs. 'this' in JavaScript? 在典型的面向对
阅读全文
摘要:https://www.cnblogs.com/UncleKeith/p/5803551.html 典型的面向对象编程语言(比如C++和Java),存在“类”(class)这个概念。所谓“类”就是对象的模板,对象就是“类”的实例。但是,在JavaScript语言的对象体系,不是基于“类”的,而是基于
阅读全文
摘要:How to wait for a browser re-render? Vue.nextTick doesn't seem to cover it, and setTimeout(..., 0) is not good enough. #9200 What problem does this fe
阅读全文
摘要:How to function call using 'this' inside forEach loop In the following object, I have a problem using the 'this' reference: function SampleObject(){ t
阅读全文
摘要:jquery.validate.unobtrusive not working with dynamic injected elements I am working with ASP.Net MVC3, the easier way to use the client validation wou
阅读全文
摘要:Difference between jQuery.extend and jQuery.fn.extend? 回答1 jQuery.extend is used to extend any object with additional functions, but jQuery.fn.extend
阅读全文
摘要:Methods, Computed, and Watchers in Vue.js One of the reasons I love working with Vue is because of how useful methods, computed, and watchers are, and
阅读全文
摘要:Caution using watchers for objects in Vue Suppose we have an object and we want to do something when it’s properties change. Probably we’ll start with
阅读全文
摘要:How to Watch Deep Data Structures in Vue (Arrays and Objects) You have an array or an object as a prop, and you want your app to do something whenever
阅读全文
摘要:Browser: Document, Events, Interfaces Document and resource loading Page: DOMContentLoaded, load, beforeunload, unload The lifecycle of an HTML page h
阅读全文
摘要:Lifecycle Diagram Below is a diagram for the instance lifecycle. You don't need to fully understand everything going on right now, but as you learn an
阅读全文
摘要:Uncaught ReferenceError: vm is not defined vue.js 2.0 回答1 As mentioned by @Fiete the vm variable wont be available by default. You need to define vm g
阅读全文
摘要:Vue.js - How to properly watch for nested data You can use a deep watcher for that: watch: { item: { handler(val){ // do stuff }, deep: true } } This
阅读全文
摘要:Options / Data data Type: Object | Function Restriction: Only accepts Function when used in a component definition. Details: The data object for the V
阅读全文
摘要:What is difference between 'data:' and 'data()' in Vue.js? I have used data option in two ways. In first snippet data object contains a key value, how
阅读全文
摘要:Setting up jQuery Unobtrusive Validation 这个里面没有提到自定义rule 自定义rule的实现,可以参考https://www.cnblogs.com/chucklu/p/15528837.html Wednesday, May 20, 2015 I love
阅读全文
摘要:Valid vs Validate I am trying to learn jQuery and have stumbled across a strange problem (perhaps strange only to me). So here goes: I have a form wit
阅读全文
摘要:HTML Tags containing Vue.js v-if and v-for directives flash at loading Use v-cloak and it will solve it. https://vuejs.org/v2/api/#v-cloak v-cloak Doe
阅读全文
摘要:What does a CSS selector in square brackets select in HTML? So I have seen this CSS rule-set in a library: [text-uppercase] { text-transform: uppercas
阅读全文
摘要:Template refs This page assumes you've already read the Components Basics. Read that first if you are new to components. Despite the existence of prop
阅读全文
摘要:How to check if a variable is not null? I know that below are the two ways in JavaScript to check whether a variable is not null, but I’m confused whi
阅读全文