फैंटॉमजेएस 2.1.1 केवल ईसीएमएस्क्रिप्ट 6 के लगभग 10% का समर्थन करता है, जो शायद आपके पृष्ठ को सही ढंग से प्रस्तुत करने के लिए पर्याप्त नहीं हो सकता है।
Overall coverage: 10%
> Array is subclassable: 0/11
> Array static methods: 0/11
> Array.prototype methods: 0/10
> Date.prototype[Symbol.toPrimitive]: No
> Function is subclassable: 0/6
> HTML-style comments: Yes
> Map: 0/19
> Math methods: 1/17
> Number properties: 0/7
> Object static methods: 0/4
> Object static methods accept primitives: 0/10
> Object.prototype.__proto__: 6/6
> Promise: 0/8
> Promise is subclassable: 0/4
> Proxy: 0/34
> Proxy, internal 'defineProperty' calls: 0/2
> Proxy, internal 'deleteProperty' calls: 0/6
> Proxy, internal 'get' calls: 0/36
> Proxy, internal 'getOwnPropertyDescriptor' calls: 0/4
> Proxy, internal 'ownKeys' calls: 0/3
> Proxy, internal 'set' calls: 0/11
> Reflect: 0/20
> RegExp "y" and "u" flags: 0/5
> RegExp is subclassable: 0/4
> RegExp syntax extensions: 8/8
> RegExp.prototype properties: 0/6
> RegExp.prototype.compile: Yes
> Set: 0/19
> String static methods: 0/2
> String.prototype HTML methods: 3/3
> String.prototype methods: 0/10
> Symbol: 0/11
> Unicode code point escapes: 0/2
> WeakMap: 0/12
> WeakSet: 0/11
> __proto__ in object literals: 1/5
> arrow functions: 0/13
> block-level function declaration: No
> class: 0/24
> const: 1/16
> default function parameters: 0/7
> destructuring, assignment: 0/24
> destructuring, declarations: 0/22
> destructuring, parameters: 0/23
> for..of loops: 0/9
> function "name" property: 3/17
> generators: 0/27
> let: 0/12
> miscellaneous: 2/10
> miscellaneous subclassables: 0/6
> new.target: 0/2
> non-strict function semantics: 2/3
> object literal extensions: 0/6
> octal and binary literals: 0/4
> own property order: 4/7
> proper tail calls (tail call optimisation): 0/2
> prototype of bound functions: 0/5
> rest parameters: 0/5
> spread (...) operator: 0/15
> super: 0/8
> template literals: 0/5
> typed arrays: 19/46
> well-known symbols: 0/26
यह Gist पूरा डेटा के साथ ही स्क्रिप्ट है कि यह उत्पन्न होता है:
यहाँ एक से थोड़ा अधिक विस्तृत परिणाम https://kangax.github.io/compat-table/es6/ पर आधारित है।
स्रोत
2016-06-04 14:24:07
आप किस फैंटॉमजेएस संस्करण का उपयोग करते हैं? कृपया 'ऑन कंसोल मैसेज', 'ऑनरर', 'ऑन रिसोर्स एरर', 'ऑन रिसोर्सटाइमआउट' ईवेंट ([उदाहरण] (https://gist.github.com/artjomb/4cf43d16ce50d8674fdf#file-1_phantomerrors-js) पर पंजीकरण करें)। शायद त्रुटियां हैं। –
@ArtjomB। मैं phantomjs संस्करण '1.9.0' का उपयोग कर रहा हूँ। मैं https://github.com/liuwenchao/ajax-seo/blob/master/seo.js –
@ArtjomB से स्क्रिप्ट का उपयोग कर रहा हूं। 'ऑन कंसोल मैसेज', 'ऑनरर' और आपके द्वारा निर्दिष्ट अन्य विधियों को जोड़ने के बाद भी, कोई त्रुटि नहीं मिल रही है। बस –