obj.style.z-index的正确写法
今天发现obj.style.z-index在js里面报错,
后来才知道在js里应该把含“-”的字符写成驼峰式,
例如obj.style.z-index的正确写法应该是
obj.style.zIndex
今天发现obj.style.z-index在js里面报错,
后来才知道在js里应该把含“-”的字符写成驼峰式,
例如obj.style.z-index的正确写法应该是
obj.style.zIndex