A letter '%' is doubled on Android

梦想的初衷 提交于 2019-12-11 05:39:55

问题


Environment Titanium 6.0.3.GA / 6.0.2.GA / 6.0.1.GA

var myname = "%";
Ti.API.info("test:" + myname);

This simple code shows different output

Android

[INFO]  test:%%

iOS

[INFO]  test:%

THis is the further investigation of Titanium encodeURIComponent returns different value iOS / Android

It might be bug or not ??


I tried these too

var myname = "1%1";
var myname = '1%1';
var myname = "1\%1";

Everything shows (on Android)

[INFO]  test:1%%1

来源:https://stackoverflow.com/questions/43251742/a-letter-is-doubled-on-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!