12 2020 档案
摘要:http://www.ruanyifeng.com/blog/2020/12/weekly-issue-140.html Vue.js 是主流的前端框架,面试前端岗位时,经常会遇到这方面的题目。 下面就是一些常见的面试问题。 [基础类问题] [扩展类问题] 上面这些问题是由腾讯课堂101认证机构 金
阅读全文
摘要:Match exact string What is the regular expression (in JavaScript if it matters) to only match if the text is an exact match? That is, there should be
阅读全文
摘要:regex.test V.S. string.match to know if a string matches a regular expression Many times I'm using the string match function to know if a string match
阅读全文
摘要:What is the meaning of the 'g' flag in regular expressions? g is for global search. Meaning it'll match all occurrences. You'll usually also see i whi
阅读全文
摘要:scss // stylelint-disable declaration-no-important // Width and height @each abbrev in (width: w, height: h) { @each length in $sizes
阅读全文
摘要:How to override !important? have created a custom style sheet that overrides the original CSS for my Wordpress template. However, on my calendar page,
阅读全文
摘要:What does !important mean in CSS? What does !important mean in CSS? Is it available in CSS 2? CSS 3? Where is it supported? All modern browsers? 回答1 I
阅读全文
摘要:Concatenating the Razor Variables with CSS Styles Try this: <div style="background-image: url('@Model.SpriteSheetUrl'); width: 60px; height: 60px;back
阅读全文
摘要:How to pass a value to razor variable from javascript variable? 回答1 You can't. and the reason is that they do not "live" in the same time. The Razor v
阅读全文
摘要:Ajax request returns 200 OK, but an error event is fired instead of success I have implemented an Ajax request on my website, and I am calling the end
阅读全文
摘要:Pass request headers in a jQuery AJAX GET call 回答1 As of jQuery 1.5, there is a headers hash you can pass in as follows: $.ajax({ url: "/test", header
阅读全文
摘要:Capture 404 status with jQuery AJAX Replace your error function as follows... error:function (xhr, ajaxOptions, thrownError){ if(xhr.status==404) { al
阅读全文
摘要:ajax call passing empty array to controller Ajax passing empty value but Controller get null in ASP.NET MVC Pass array to mvc Action via AJAX 回答1 Set
阅读全文
摘要:Five equal columns in twitter bootstrap https://stackoverflow.com/a/22799354/13338936 For Bootstrap 3 and above For Bootstrap 4 Bootstrap 4 now uses f
阅读全文
摘要:Why not always use the index as the key in a vue.js for loop? I have used vue.js for a couple of projects and I have been using the index as the key i
阅读全文
摘要:https://github.com/vuejs/vetur/issues/858 vuejs v-for add bootstrap row every 5 items <script src="https://vuejs.org/js/vue.min.js"></script> <div id=
阅读全文
摘要:What does a character class with only a lone caret do? [^][…] is not two character classes but just one character class containing any other character
阅读全文
摘要:What is the point of void operator in JavaScript? I've seen some people using void operator in their code. I have also seen this in href attributes: j
阅读全文
摘要:In javascript, is an empty string always false as a boolean? in javascript, var a = ''; var b = (a) ? true : false; var b will be set to false. is thi
阅读全文
摘要:Why a is undefined while b is 3 in var a=b=3? In the following code, I expected both a and b to be 3. However, a is undefined and b is 3. Why? (functi
阅读全文
摘要:Dynamically access object property using variable I'm trying to access a property of an object using a dynamic name. Is this possible? const something
阅读全文
摘要:What is the difference between readonly=“true” & readonly=“readonly”? What is the difference between: <input name="TextBox1" type="text" id="TextBox1"
阅读全文
摘要:https://www.learn-sudoku.com/x-wing.html X Wing An X Wing is a technique for removing candidates (pencil marks). It starts with either two parallel ro
阅读全文
摘要:Vue.js—Difference between v-model and v-bind I'm learning Vue with an online course and the instructor gave me an exercise to make an input text with
阅读全文
摘要:How to add dynamically attribute in VueJs base one condition we can define or change attributes in vue Please refer official document for the same htt
阅读全文
摘要:JavaScript data types and data structures Programming languages all have built-in data structures, but these often differ from one language to another
阅读全文
摘要:Why does JavaScript variable declaration at console results in “undefined” being printed? I have already read the following SO posts: Why does this Ja
阅读全文
摘要:What’s the difference between “{}” and “[]” while declaring a JavaScript array? What’s the difference between “{}” and “[]” while declaring a JavaScri
阅读全文
摘要:What’s the difference between “Array()” and “[]” while declaring a JavaScript array? 问题 What's the real difference between declaring an array like thi
阅读全文
摘要:https://github.com/vuejs/vue-cli https://github.com/vuejs-templates/webpack https://www.jianshu.com/p/82a85d01c929 Usage This is a project template fo
阅读全文
摘要:https://github.com/remy/nodemon#config-files https://github.com/remy/nodemon/blob/master/doc/sample-nodemon.md { "watch": ["src"], "ext": "html,vue,js
阅读全文
摘要:How to parse command line arguments Passing in arguments via the command line is an extremely basic programming task, and a necessity for anyone tryin
阅读全文
摘要:Nodejs cannot find installed module on Windows 问题 I am learning nodejs at the moment on Windows. Several modules are installed globally with npm.cmd,
阅读全文
摘要:What's the difference between dependencies, devDependencies and peerDependencies in npm package.json file? Summary of important behavior differences:
阅读全文
摘要:An Absolute Beginner's Guide to Using npm Using npm effectively is a cornerstone of modern web development, no matter if it's exclusively with Node.js
阅读全文
摘要:https://github.com/sindresorhus/ora Elegant terminal spinner https://github.com/isaacs/rimraf A `rm -rf` util for nodejs https://github.com/jinder/pat
阅读全文
摘要:Installation Warning regarding Previous Versions The package name changed from vue-cli to @vue/cli. If you have the previous vue-cli (1.x or 2.x) pack
阅读全文
摘要:NPM self_signed_cert_in_chain If you're behind the corporate proxy (which uses e.g. Blue Coat), you should use http instead of https for repository ad
阅读全文
摘要:'cnpm' is not recognized as an internal or external command 切换administrator账号cnpm不识别 解决: npm install -g cnpm --registry=https://registry.npm.taobao.or
阅读全文
摘要:nodemon command is not recognized in terminal for node js server You need to install it globally npm install -g nodemon # or if using yarn yarn global
阅读全文
摘要:What do these three dots in React do? 回答1 That's property spread notation. It was added in ES2018 (spread for arrays/iterables was earlier, ES2015), b
阅读全文
摘要:https://webpack.js.org/guides/getting-started/ Getting Started webpack is used to compile JavaScript modules. Once installed, you can interact with we
阅读全文
摘要:Remove console.logs with Webpack & Uglify 回答1 With UglifyJsPlugin we can handle comments, warnings, console logs but it will not be a good idea to rem
阅读全文
摘要:What is the difference between customErrors and httpErrors? What is the difference between the customErrors and httpErrors sections of the web.config
阅读全文
摘要:https://regex101.com/ 这个站点输入正则a(b|c)*d,测试aed 无法匹配,就进行调试 Match 1 failed in 8 setps step1 在aed的起始位置匹配a, step2 这里已经显示匹配结果,step1里面的a匹配上了 在a后面开始匹配(b|c)* 这里
阅读全文
摘要:\d is less efficient than [0-9] \d checks all Unicode digits, while [0-9] is limited to these 10 characters. For example, Persian digits, ۱۲۳۴۵۶۷۸۹, a
阅读全文
摘要:How to navigate back to the last cursor position in Visual Studio Code? The Keyboard Shortcut Commands are Go Forward and Go Back. On Windows: Alt+← .
阅读全文
摘要:Is there a short-hand for nth root of x in Python 开三次方一般指三次方根。如果一个数的立方等于a,那么这个数叫做a的立方根或三次方根(cube root)。 nth root of x is x^(1/n), so you can do 9**(1/
阅读全文
摘要:Disable source maps in Chrome DevTools Open Developer Tools, go to "Settings" for Developer Tools, then uncheck Enable JavaScript Sourcemaps under the
阅读全文
摘要:Disable map files on SASS I would like to know how I can prevent Sass from writing .map files. I'm using Sass in a very basic setup: sass --watch styl
阅读全文
摘要:Using Source Maps to Debug Sass in Chrome If you use Sass in your front-end projects, chances are your partials are split in a clean and logical fashi
阅读全文
摘要:http://beautifytools.com/css-to-scss-converter.php CSS To SCSS Converter converts CSS to SCSS online. Enter your CSS and click convert to get SCSS cod
阅读全文
摘要:what are the .map files used for in Bootstrap 3.x? There are two files included in the CSS folder with .map file extensions. They are: bootstrap-theme
阅读全文
摘要:Web API Put Request generates an Http 405 Method Not Allowed error So, I checked Windows Features to make sure I didn't have this thing called WebDAV
阅读全文
摘要:Get names of the params passed to a C# method void MyMethod(string something, params object[] parameters) { foreach (object parameter in parameters) {
阅读全文
摘要:https://github.com/m-spyratos/bootstrap-4-grid/blob/ba6cad11e710d8a1458b8a185ec26befb082b041/Gruntfile.js#L27 https://gruntjs.com/getting-started Gett
阅读全文
摘要:http://www.ruanyifeng.com/blog/2012/06/sass.html 学过CSS的人都知道,它不是一种编程语言。 你可以用它开发网页样式,但是没法用它编程。也就是说,CSS基本上是设计师的工具,不是程序员的工具。在程序员眼里,CSS是一件很麻烦的东西。它没有变量,也没有条
阅读全文
摘要:https://semver.org/spec/v2.0.0.html https://www.nuget.org/packages/SuperSocket/ https://github.com/kerryjiang/SuperSocket/issues/430 Given a version n
阅读全文
摘要:System.Security.Principal.Windows Severity Code Description Project File Line Suppression StateError Unable to uninstall 'System.Security.Principal.Wi
阅读全文
摘要:Regex plus vs star difference? What is the difference between: (.+?) and (.*?) when I use it in my php preg_match regex? They are called quantifiers.
阅读全文
摘要:What's the difference between re.DOTALL and re.MULTILINE? [duplicate] They are quite different. Yes, both affect how newlines are treated, but they sw
阅读全文
摘要:Getting number of elements in an iterator in Python No, any method will require you to resolve every result. You can do iter_length = len(list(iterabl
阅读全文
摘要:What is the difference between re.search and re.match? re.match is anchored at the beginning of the string. That has nothing to do with newlines, so i
阅读全文
摘要:What does an 'r' represent before a string in python? [duplicate] r means the string will be treated as raw string. From here: When an 'r' or 'R' pref
阅读全文
摘要:Security Code Scan https://marketplace.visualstudio.com/items?itemName=JaroslavLobacevski.SecurityCodeScanVS2019 Quick HTML Previewer html预览,所见即所得 打开h
阅读全文
摘要:https://vuejs.org/v2/guide/single-file-components.html https://vueschool.io/lessons/introduction-to-single-file-components For Users New to Module Bui
阅读全文
摘要:https://vuejs.org/v2/guide/components-registration.html Global Registration So far, we’ve only created components using Vue.component: Vue.component('
阅读全文
摘要:https://vuejs.org/v2/guide/components.html https://vueschool.io/courses/vuejs-components-fundamentals Components are the puzzle pieces of a Vue.js web
阅读全文
摘要:声明式渲染 Declarative Rendering https://vuejs.org/v2/guide/#Declarative-Rendering js代码 这个叫做脚本 var app = new Vue({ el: '#app', data: { message: 'Hello Vue!
阅读全文
摘要:pip install fails with “connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)” > pip install gensim config --globa
阅读全文
摘要:Explore Type Dependency Diagram ReSharper allows you to visually study how types depend on each other in your solution. In the type dependency diagram
阅读全文
摘要:What does dependency/dependant mean? Terminology is context dependent. In general, the dependency is a synonym of dependence and describes not one ent
阅读全文