Tpm has been packaged successfully. The Code demo is shared.

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.