<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script> var z; function sample() { z=0; setTimeout(sig,3000); mes="準備中"; $("#memo").html(mes); google.script.run .withSuccessHandler(function(y) { z=y; }) .withFailureHandler(function(msg) { $("#memo").html("failx"); }) .plus(); } function sig(){ mes=z; $("#memo").html(mes); } </script>