Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これが私の機能です:
CSS_Left = '450px'; CSS_Left.replace('px', ''); alert(CSS_Left);
「450px」を返します
次に例を示します。
http://jsfiddle.net/D2Mgb/
「px」を何も置き換えないようにしたい。
replace 呼び出しの出力を CSS_Left に再割り当てする必要があります