[英]Generate JavaScript using the Grape API?
我正在使用Grape框架來檢索數據,效果很好。 我還想使用API檢索JavaScript文件。 例如:
<!DOCTYPE html>
<html>
<head>
<script defer src="http://someapi.com/dni_js/dni.js" > </script>
</head>
<body>
</body>
</html>
http://someapi.com/dni_js/dni.js正在調用API。
做到這一點的最佳方法是什么?
您應該在API中實現對JSONP的支持。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.