<script type='text/javascript'>var refresh_id = 0;
function start_time(){var button = document.getElementById('start')if (button.texContent =='开始'){refresh_id = SetInterval('refresh_tine()',1)button.textContent = '停止';}else{button.textContent = '开始';clear.Interval(refresh_id);}}</script>
function start_time(){var button = document.getElementById('start')if (button.texContent =='开始'){refresh_id = SetInterval('refresh_tine()',1)button.textContent = '停止';}else{button.textContent = '开始';clear.Interval(refresh_id);}}</script>
2017-07-30
<body><div id='container'><button onclick="start_time()" id='start'>开始</button><p id='prefix'>当前时间</p><p id='time'></p></div></body>
2017-07-30
项目实战示例中,没有采用蓝图的形式而是:
'''
# Restful API
'''
# home page
api.add_resource(Home, '/', '/dashes')
api.add_resource(DashListData, '/data/dashes/')
'''
# Restful API
'''
# home page
api.add_resource(Home, '/', '/dashes')
api.add_resource(DashListData, '/data/dashes/')
2017-07-30