我正在尝试用voiceXML和YahooweatherAPI制作一个语音天气系统。为了开发我的程序,我使用了voxeo进化。为了调用WeatherAPI,我使用了带有srcexpr的data vxml标记,因为我需要一个动态URL (程序要求用户输入一个城市来检查天气)。<?-- code taken from the javascript example of the yah
我正在本地主机上使用node.js运行服务器:8080,我想在我的HTML文档中使用api。html文档是外部的,所以我将如何将api数据发送到网页。例如,我的javascript文件中有一个天气api:var yw = require('weather-yahoo');function loadWeather()console.log(res);