Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn tpm, and finally package successfully. The Code demo has been shared for nearly two days and many methods have been tried, finally, I can share it with my friends. I am stunned. It's better to develop Android, haha.
Share a Hello World Package. I have just been in touch with tpm and have been running on the local machine for several times. I just found a virtual machine and failed to configure it several times. The prompt is always: network exception! Then I found the error code, line 1 under/Tpl/Public/js/TPM. js. Some code is as follows:
AjaxError: function (xhr, ajaxOptions, thrownError)
{
Window. TPMshowAjaxWait = true;
TPM.info ('network exception ');
},
It seems that there is a problem with the configuration (specific configuration: http://www.thinkphp1.cn/document/395.html), after my repeated packaging test, I finally tested it, actually succeeded, the reason is here:
Script TPM. run ("http: // www. ***. com/index. php/"); script
This was previously written during packaging. script TPM. run ("http: // www. ***. com/index. php"); script
I tried it multiple times, but I couldn't do it. After I added a/package and installed it, it was amazing. I smiled when I saw Hello World ...... Code demosharer, You can package, find a virtual machine trial, it in index.html "script" TPM. run ("http://t.hailian.it/index.php/"); "script"
This domain name is replaced with your own, then packaged, uploaded to the server, and then installed apk, you can, note: ensure that the address can be accessed normally, although it is a mobile client, but he still needs the server to run normally, this is not the original ecology of the client, huh, huh, details: http://www.zoneself.org/2013/08/20/content_2355.html
Demo.rar (1.52 MB download: 153 times)
AD: truly free, domain name + VM + enterprise mailbox = 0 RMB