いやーなんでお前がObjectなんだよ!?としばらく四苦八苦してしまいましたが、やっぱオブジェクトだった。コンピューターウソつかないね。
一応内容を書いておくと
var _a:Array = [1,2,3,4,5];
として
b = a.splice(1,0);
と要素抽出を行ってtraceすると
trace(b); // 1
これでb =1というNumberだと勘違いしていたという罠・・。
足し算とか全然できなくてあせりました。
俺はアホだ。
いやーなんでお前がObjectなんだよ!?としばらく四苦八苦してしまいましたが、やっぱオブジェクトだった。コンピューターウソつかないね。
一応内容を書いておくと
var _a:Array = [1,2,3,4,5];
として
b = a.splice(1,0);
と要素抽出を行ってtraceすると
trace(b); // 1
これでb =1というNumberだと勘違いしていたという罠・・。
足し算とか全然できなくてあせりました。
俺はアホだ。
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
These cookies are needed for adding comments on this website.
Google reCAPTCHA helps protect websites from spam and abuse by verifying user interactions through challenges.
Google Tag Manager simplifies the management of marketing tags on your website without code changes.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com
Marketing cookies are used to follow visitors to websites. The intention is to show ads that are relevant and engaging to the individual user.
A video-sharing platform for users to upload, view, and share videos across various genres and topics.
Service URL: www.youtube.com
You can find more information in our Cookie Policy and Privacy policy.