var myOne=$("#hfdType").val(); //'1' 或 '2'
var myTwo='2';
console.info(myOne); //传参'2'
console.info(myTwo); //直接赋值字符'2' 实际是2
console.info(myOne==myTwo); //'2'==2 ==>false
console.info(myOne=="'"+myTwo+"'"); //'2'=='2' ==>true