網頁

2014年1月14日 星期二

Google App Engine -gae

Google Cloud Platform

https://developers.google.com/appengine/downloads

python 要安裝

要中文正常 app.yaml 記得轉utf8

載入使用.js

loading external javascripts with GAE


AppEngine doesn't know anything about paths on your local system; it will only upload files that you configure it to. Do this by having a line like this in your app.yaml file:
handlers:
- url: /js
  static_dir: js
In this case, /js represents a subdirectory of your main project directory, and you can put all of your static JavaScript files in there. They will be uploaded to the production server, and you can include them in your HTML with:
<script src="/js/jquery.js" type="text/javascript" ></script>
 傳值到外部網路的方法

 
Click the button to display.
function myFunction()
{

    var url = 'http://htshboy.rhcloud.com/api-latlng.php';
    $.get(url, {  lat: "27", lng: "121" } );

}

沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。