Вопрос по jquery, javascript – Как $ ('h1') регистрируется в веб-консоли как массив в jQuery?

13

Error: User Rate Limit Exceededconsole.log($('some selector'))Error: User Rate Limit Exceeded

picture from latest version of chrome web console on Github project page

Error: User Rate Limit Exceededinstanceof ArrayError: User Rate Limit ExceededError: User Rate Limit ExceededjQuery object.

Error: User Rate Limit Exceededconsole.dir($('h1'))Error: User Rate Limit Exceeded

Error: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit ExceededtoArrayError: User Rate Limit ExceededjQueryError: User Rate Limit ExceededtoArray, indexOf, sliceError: User Rate Limit ExceededEmber.ArrayProxyError: User Rate Limit ExceededEmber.ArrayProxyError: User Rate Limit Exceeded> ObjectError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded Lance Pollard
Error: User Rate Limit Exceeded jimw
Error: User Rate Limit Exceededstackoverflow.com/questions/6599071/…. pimvdb

Ваш Ответ

1   ответ
15

Array

function SomeType() {
    this.push(16);
}

SomeType.prototype = [];
SomeType.prototype.constructor = SomeType; // Make sure there are no unexpected results

console.log(new SomeType()); // Displays in console as [16]

jQueryArray

Error: User Rate Limit Exceeded Lance Pollard
Error: User Rate Limit Exceeded Lance Pollard
Error: User Rate Limit Exceededlength, spliceError: User Rate Limit Exceeded
Error: User Rate Limit Exceededvar x = {length: 0, splice: Array.prototype.splice}Error: User Rate Limit ExceededxError: User Rate Limit Exceeded Lance Pollard
Error: User Rate Limit ExceededRefererError: User Rate Limit Exceeded?addError: User Rate Limit Exceeded

Похожие вопросы