---
title: "ie的javascript hack"
author: "rexcn"
date: "2011-06-19T04:51:50Z"
tags: ["IE", "JavaScript"]
categories: ["Web前端"]
slug: "ie-javascript-hack"
draft: false
lastmod: "2011-06-19T04:51:50Z"
id: 1097636
url: "https://rexcn.iteye.com/blog/1097636"
---

var ie = document.all ? 1 : 0;
if (ie)

可使if的内容只对ie适用。