I know, i meant parse it in the beginning of the function.
2014/2/25 下午8:38 於 "EragonJ" <notifications@github.com> 寫道：

> In apps/settings/js/simcard_lock.js:
>
> > @@ -145,7 +145,7 @@
> >                } else {
> >                  toast = {
> >                    messageL10nId: 'simPinChangedSuccessfullyWithIndex',
> > -                  messageL10nArgs: {'index': cardIndex + 1},
> > +                  messageL10nArgs: {'index': parseInt(cardIndex, 10) + 1},
>
> Arthur, because we store this value in dataset in template, no matter you
> put String or Number, it will be changed to String type automatically.
> That's why we still need to parse the value. [image: :rocket:]
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mozilla-b2g/gaia/pull/16601/files#r10033700>
> .
>