IE v/s console

13/Jun/2013 206

¿Cansado de soportar IE? Te entiendo, pero aún hay clientes que piden que sus proyectos se vean en estos browsers antiguos. Frustraciones aparte, cuando escribes Javascript y usas console.log() para debuggear tu código en la consola del browser, es usual que éstas funcionalidades se quiebren en IE8-.

console.log('IE8- dará error por esto');

Solución 1

window.console && console.log('IE seguirá funcionando ahora, pero no mostrará nada en la consola. ¡Se lo pierde!');

Solución 2

Verifica si console existe y si es undefined, crea una vacía:

if ( ! window.console ) console = { log: function(){} };

Después utiliza console.log como quieras, no entregará error en IE:

console.log('IE seguirá ignorando console.log');

Link: Testing for console.log statements in IE | StackOverflow

Comentarios

  1. BarryBitle [#]

    canadian pharmacies without prescriptions
    generic viagra cheap northwestpharmacy .com canadian overnight pharmacy generic cialis canadian order cialis walmart rx prices best price on cialis 5mg how to get viagra without a prescription canadian drugstore online low price cialis
    best canadian pharmacies shipping to usa purchase viagra online viagra plus buy heroin online cheap cialis online canadian pharmacy

  2. Lloydneoky [#]

    canadian pill store
    canada drugstore viagra sales erectile dysfunction drugs online canada drug stores canadian pharcharmy online without prescription alcohol and viagra cialis pharmacy rx one herbal viagra reviews best prices for cialis viagra pfizer
    drugs from canada does viagra work for women prescription viagra viagra side effects drugs from canada

  3. Maria Taylor [#]

    cialis dosage strengths cialis cost generic tadalafil generico

  4. Wesley Mcbride [#]

    tamoxifen citrate usp nolvadex generika nolvadex generic name

  5. William Mayes [#]

    Keep functioning ,great job!

  6. Patricia Shead [#]

    I just couldn’t leave your site before suggesting that I actually enjoyed the usual info an individual provide in your guests?
    Is going to be back steadily to investigate cross-check new posts

  7. Ruthie Pierce [#]

    fucking on viagra sildenafil cream sildenafil citrate 100mg

  8. Lori Martinez [#]

    cialis 20mg sale cialis testimonials forum cialis mastercard

  9. Aaron Geiger [#]

    Some times its a pain in the ass to read what website owners wrote but this web site is really user pleasant!

  10. Hector Stinson [#]

    viagra prices walmart womens viagra india pharmacy viagra

  11. Pauline Warrior [#]

    Greetings from Ohio! I’m bored to tears at work so I
    decided to browse your website on my iphone during lunch break.
    I really like the information you provide here and can’t
    wait to take a look when I get home. I’m shocked at how fast your blog loaded on my
    phone .. I’m not even using WIFI, just 3G .. Anyhow, great blog!

  12. Walter Mayfield [#]

    tizanidine muscle relaxer tizanidine medication zanaflex 6 mg

  13. Paulina Soto [#]

    Hi there, I red yoyr blkogs regularly. Youur wriuting
    syle is witty,keep doinbg whhat you’re doing!

  14. Manuel Chastain [#]

    I’ve been browsing on-line more than three hours lately,
    yet I never discovered any interesting article like yours.
    It is beautiful price sufficient for me. Personally, if all site
    owners and bloggers made excellent content material as you
    probably did, the internet will be a lot more useful than ever before.

  15. RogerPSync [#]

    viagra over the counter
    canadian-drugs drugs-med.com buy cialis in canada online can women take viagra viagra for men shopping online canada drapolene cream cialis of canada cialis from usa pharmacy walmart drug prices without insurance
    online canadian pharmacies 5mg cialis buy viagra in canada buy generic viagra low price viagra

  16. JoshuaVog [#]

    best canadian pharmacies shipping to usa
    erectile dysfunction drugs online buy cialis from canada buy medication without an rx walmart viagra price cialis in canadian pharmacies viagra pill genuine viagra cialis online from canada free viagra sample online cheap viagra
    best price viagra canada-cialis viagra soft calis buy canadian drugs without prescription

  17. BarryBitle [#]

    viagra professional
    buy drugs canada prescriptions cielas canada medication how long does viagra last viagra online generic generic cialis canadian prescription viagra viagra without a prescription viagra generic online
    when will viagra go generic online canadian pharmacies viagra and high blood pressure does generic viagra work natural substitute for viagra

  18. StevenFal [#]

    buy viagra
    best prices for cialis lowest prescription prices viagra without a doctor prescription usa buying from viagra canada viagra overnight delivery buy brand cialis online canada cheap cialis canadian pharmacy viagra real viagra online generic viagra sale
    canadianpharmacymeds.com cialis without a doctors prescription ordering viagra online without prescription best online canadian pharmacies drug canada

  19. RogerPSync [#]

    viagra canada online pharmacy
    canadian pharmacy online canadian pharmacies viagra real viagra viagra at canadian pharmacy canadian pharmacy-viagra buy cialis online canada pharmacy ordering viagra buy discount viagra generic viagra pills viagra online shop
    cheap viagra canada buy cialis online online prescription us pharmacy for cialis buy viagra now

  20. Lloydneoky [#]

    drug canada
    cheap viagra in canada best price on cialis prescription canadian pharmacy without a prescription canadianpharmacymeds.com prescription drugs from canada prices how much does cialis cost in canada canadian pharmacy cialis for daily use viagra at canadian pharmacy best prices for cialis viagra canada with prescription
    viagra tablets does viagra work cheapest viagra in uk cilas women viagra

  21. web hosting off [#]

    This is really interesting, You’re a very skilled blogger.
    I’ve joined your rss feed and look forward to seeking more of your excellent post.
    Also, I’ve shared your site in my social networks!

  22. Lloydneoky [#]

    pills from canada
    purchase viagra professional viagra brand for sale cialis prices daily cialis soft viagra cialis canada pharmacy viagra 50 mg canadian pills rite aid pharmacies medication online
    viagra india viagra prescriptions canadian meds viagra buying viagra from canada free viagra sample pack

  23. http://j.mp/2WAvPGN [#]

    Greetings! Very helpful advice in this particular post!
    It’s the little changes that make the biggest changes.
    Many thanks for sharing!

  24. gay platonic dating [#]

    scruft bears gay dating https://datinggayservices.com/

  25. stromectol [#]

    ivermectin аёЄаёіаё«аёЈаё±аёљаё‚аёІаёў IE v/s console | CSSLab | Laboratorio de ideas web https://ivermectin1.com/ stromectol

  26. HenryUnfiP [#]

    gay priest dating site
    gay fat cub bear hairy dating
    gay dating format

  27. gay feet dating [#]

    best gay bear dating site https://dating-gaym.com/

  28. PeterCed [#]

    canada med
    buy viagra viagra tablets buy medication without an rx drug online buy viagra online at canadian pharmacy without a prescription order generic viagra about canadian drug companies canadianpharmacymeds.com celis
    list of canada online pharmacies canadadrugstoresonline.com best online canadian prescription companies buy viagra online at canadian drug stores

  29. canine ivermectin for sale [#]

    stromectol where to buy IE v/s console | CSSLab | Laboratorio de ideas web http://ivermectin1.com/ ivermectin

  30. buddy gay dating sites [#]

    gay dating site for free https://gayonlinedating.net/

  31. FelipeHaw [#]

    viagra prescription
    buy pfizer viagra viagra prescription online cialis without a doctor’s prescription viagra ingredients viagra and alcohol viamedic .com natural viagra substitute drapolene cream generic viagra from canada universal pharmacy
    canadiandrugstore.com buy viagra online without script wwwcanadianpharmacy.com canadian prescription london pharmacy canada

  32. j.mp [#]

    My family members always say that I am wasting my time here at net, except I know I am
    getting knowledge every day by reading such good articles.
    scoliosis surgery https://0401mm.tumblr.com/ scoliosis surgery

  33. their quest bars [#]

    Wow, this piece of writing is good, my younger sister is analyzing these
    things, so I am going to tell her. quest bars
    http://bit.ly/3jZgEA2 quest bars

  34. ivermectin [#]

    cecair stromektol IE v/s console | CSSLab | Laboratorio de ideas web http://ivermectin1.com/ ivermectin tablets

  35. app.gumroad.com [#]

    Really when someone doesn’t understand then its up to other
    visitors that they will assist, so here it occurs.
    asmr https://app.gumroad.com/asmr2021/p/best-asmr-online asmr

  36. MarvinFuh [#]

    cheapest viagra prices
    best generic cialis canadian viagra online pharmacy reviews cialis 5mg best price generic latisse for sale supermarket near me viagra reviews natural alternative to viagra canadian pharmacies viagra buy viagra without prescription canada viagra for men
    drugs canada prescription viagra canadian pharmacies without prescription viagra canada with prescription sildenafil generic

  37. bitly.com [#]

    I think the admin of this website is truly working hard for his web site,
    as here every stuff is quality based data. ps4 https://j.mp/3z5HwTp ps4
    games

  38. PeterCed [#]

    buy cialis in canada online
    canadian drugs without a prescription online purchase viagra women taking viagra viagra for sale online over the counter viagra alternative uk viagra sales online pharmacies in usa canadian tadalafil viagra and women best canadian pharmacies shipping to usa
    cialis pills online pharmacy cialis viagra pharmacy online canadian medicine viagra shelf life

  39. coub.com [#]

    We absolutely love your blog and find almost all of your post’s to be just
    what I’m looking for. Do you offer guest
    writers to write content for yourself? I wouldn’t mind publishing a post or elaborating on a number of the subjects
    you write concerning here. Again, awesome website!
    scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis surgery

  40. http://bit.ly [#]

    May I simply say what a relief to discover somebody who actually understands what they are talking about on the internet.
    You actually know how to bring a problem to light and make it important.
    More and more people really need to check this out and understand this side
    of your story. I was surprised that you’re not more popular given that you definitely possess
    the gift. cheap flights http://1704milesapart.tumblr.com/ cheap flights

  41. http://www.iherb.com/search?kw=questbars [#]

    Hello there! I simply would like to give you a huge thumbs up for the great info you’ve got here on this post.
    I will be coming back to your web site for
    more soon. quest bars https://www.iherb.com/search?kw=quest%20bars quest bars

  42. Williamrag [#]

    generic viagra names can i take viagra viagra 100mg online doctors that prescribe pain meds cost of drug approval best time to take levitra

  43. Phuong Robison [#]

    I’ve been browsing on-line greater than three hours lately, yet I never found any interesting article like yours.
    It’s lovely worth enough for me. In my opinion,
    if all web owners and bloggers made good content material as you did, the web will probably be much more useful than ever before.

  44. HenryUnfiP [#]

    mateen used gay dating sites
    new gay dating site 2021
    gay dating sites in india

  45. zyrtec prescription [#]

    allegra dosing – http://allergyd.com

  46. Rubenomina [#]

    what does viagra cost at walmart flomax vs cialis for bph women viagra online no prescription cocaine and cialis interaction best price 100mg generic viagra cialis refills

  47. ivermectin lotion [#]

    ivermectin 3 mg for humans http://stromectolforte.com/ ivermectin ivermectin for humans

  48. BradleyHouff [#]

    men’s libido pills kroger bottled water reverse osmosis viagra online purple viagra generic low price viagra 100mg generic viagra cost cvs

  49. stromectolforte.com [#]

    stromectol http://stromectolforte.com/ ivermectin for humans for sale stromectol

  50. Keithtyday [#]

    free prescriptions at kroger pharmacy pink viagra for women viagra canadian pharmacy best herbal alternative to viagra printable promotional items

CSSLab