---
title: "js的一个大坑，两个小时时间耗上了fk"
author: "tomfish88"
date: "2015-12-16T18:05:40Z"
tags: []
categories: ["Web前端"]
slug: "js-fk"
draft: false
lastmod: "2015-12-16T18:05:40Z"
id: 2264596
url: "https://tomfish88.iteye.com/blog/2264596"
---

直接打印值  a    结果为 片

打印 b结果为 片

 

a==b  结果为false 

 

a=='片' 结果为 true

 

b=='片' 结果为 true

 

为毛 a==b就是false呢 

 

各种调试，各种测试，，，，，，，，，，，，，，，，，

,,,,,,,,,,,,,,,,,,,,,,

,,,,,,,,,,,,,,,,,

,,,,,,,,,,,,,

,,,,,,,,,,

两个小时之后

,,,,,,,,,,,,,,,,,,,

,,,,,,,,,,,,,,,,,,,,

,,,,,,,,,,,,,,

,,,,,,,,

 

 a.toString()==b.toString()   结果ture

 

 

over ,,,,,,,,,,,卒