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 15,428 public repositories matching this topic...

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

docz
agriffis
agriffis commented Apr 6, 2020

Bug Report

docz insists on trying to parse README.md as mdx no matter how it's configured

To Reproduce

npx create-docz-app docz-readme-bug
cd docz-readme-bug
echo >> README.md
echo '<img src="https://placekitten.com/200/300" width=200>' >> README.md
npm run dev

results in

 ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

unknown:
EmNudge
EmNudge commented Jul 27, 2019

explanation behind that says it's just coercion of one type plus another.
What is happening there is actually a code block and a unary + which coerces the array into 0.
({} + []) would get the same as ([] + {}) understandably.

eu81273
eu81273 commented May 19, 2017

If the document.domain property is set in the page, _has module throws error "Access is denied" when try to check window's property for example 'hasOwnProperty'.

So I think it is better to change _has module like below.

var hasOwnProperty = {}.hasOwnProperty;
module.exports = function(it, key){
  try {
    return hasOwnProperty.call(it, key);
  } catch(e){
    return 
pt-br
pt-br commented Aug 24, 2019

I've ran into this issue for a couple hours and I ended up editing the dist library adding two new functions called fetchVideo and bufferToVideo that works pretty much like the fetchImage and bufferToImage functions.

I'll leave it here to help somebody else with the same issue and in case someone wants to include it on future releases.

face-api.js

...
exports.fetchVideo = fetc
sunlili
sunlili commented Dec 22, 2019

I run following code in ch 1.11.15, the result of ChakraCore is different from other js engines. Though in specification, “string-concatenation” is not defined clearly, other engines’ output is same.

Code:

let arg_0 = ['Fire', '', 'Wind', 'Rain'];
arr2 = arg_0.toLocaleString();

print(JSON.stringify(arr2))

output of ch:
"Fire, , Wind, Rain"

output of other engines:
"Fire,,

tiptap
tcitworld
tcitworld commented Dec 11, 2019

Describe the bug
When adding a mention through the @ matcher, an extra space is added after the mention <span> so that the cursor is located after. When adding a mention programmatically, a <br> element follows the mention span and is replaced with content when some is entered.

Steps to Reproduce / Codesandbox Example
Steps to reproduce the behavior:

  1. Go to https://tiptap.s
bug
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

foolip
foolip commented Nov 20, 2018

System information

  • node version: v10.13.0
  • npm or yarn version: 6.4.1
  • OS/version/architecture: gLinux 64-bit (Google-internal, like Debian Testing)
  • Applicable nodegit version: v0.23.0 built from source

https://www.nodegit.org/api/tree/ has an example of how to use tree.walk(), but it doesn't mention a critical detail, which is mentioned in an example:
https://github.com

leahein
leahein commented Jan 23, 2020

This isn't so much an issue as a question about contributing --

I'm an avid user of the library, and have submitted a few issues in the past as well. I'd love to contribute to the library and I thought a good way to start would be by improving the docs, starting with React.
Since React has added hooks and is moving away from class components, I t

mickyguo
mickyguo commented Dec 9, 2019

Please read and follow the issue templates:

  1. Bug Report or Documentation Issue or Questions and Help?

  2. Which react-native-wechat version are you using?

  3. What platform does your issue occur on? (Android/iOS/Both)

  4. Please provide a clear and concise description of what the bug is as precisely as possible,you can:

  1. post a screenshot to explain in which case you get the i

Created by Brendan Eich

Released December 4, 1995

Website
developer.mozilla.org/en-US/docs/Web/JavaScript
Wikipedia
Wikipedia

Related Topics

nodejs
You can’t perform that action at this time.