Skip to content
#

js

javascript logo

JavaScript (JS) is a lightweight interpreted or JIT-compiled programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js, Apache CouchDB and Adobe Acrobat. JavaScript is a prototype-based, multi-paradigm, dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles.

Here are 17,333 public repositories matching this topic...

BridgeAR
BridgeAR commented May 8, 2019

Right now we have a pretty decent list of environment variables to detect different terminals that support colors. However, it is often not exactly known from what version on these terminals actually support the colors, if that's detectable and how many colors these support.

I would like to start a list of different terminals / CIs and other things including their corresponding environment vari

andylieonian
andylieonian commented Nov 8, 2018

layui.js中,getPath方法探测layui所在目录代码存在bug,只有layui.js在页面中最后引入时,才能正确找到layui路径。
,getPath = function(){
var jsPath = doc.currentScript ? doc.currentScript.src : function(){
var js = doc.scripts
,last = js.length - 1
,src;
for(var i = last; i > 0; i--){
if(js[i].readyState === 'interactive

前端面试每日 3+1,以面试题来驱动学习,提倡每日学习与思考,每天进步一点!每天早上5点纯手工发布面试题(死磕自己,愉悦大家),3000+道前端面试题全面覆盖,HTML/CSS/JavaScript/Vue/React/Nodejs/TypeScript/ECMAScritpt/Webpack/Jquery/小程序/软技能……

  • Updated Jul 16, 2020
  • JavaScript
cdnjs
zackbloom
zackbloom commented Nov 13, 2019

CDNJS requires a certain amount of manual review and moderation. This review is required both to allow new projects to be added to the project, and to handle certain types of project changes which can't be automatically imported.

This issue is a place to discuss how we might eliminate this requirement in the future.

I believe the goal of this project should be to take everything which requir

khusamov
khusamov commented Jan 24, 2020

How import stylesheets-files?

@import url('https://fonts.googleapis.com/css?family=Spectral&display=swap');

Came up with the following solution:

import {create} from 'jss';

create().createStyleSheet({
	'@import': 'url(https://fonts.googleapis.com/css?family=Spectral&display=swap)'
}).attach();

But I would like to do it in global styles.

But the `j

You can’t perform that action at this time.