gpt4 book ai didi

jquery-ui - 带有 Google Apps 脚本的 jQuery UI

转载 作者:行者123 更新时间:2023-12-02 23:06:25 24 4
gpt4 key购买 nike

是否可以将 jQuery UI 小部件与 google apps 脚本应用程序一起使用?我有一个文本框,我想在上面使用日期选择器。

最佳答案

是的,您可以将 JQueryUI 与 Google Apps 脚本结合使用。我建议您查看示例代码,您无需执行任何特殊操作即可使它们正常工作。只要确保使用 HtmlService 而不是 UiService 开发应用程序,就不能混合搭配。这是一个例子我 lifted straight from them :

代码.gs

function doGet() {
return HtmlService.createHtmlOutputFromFile('test.html');
}

测试.html

<html>
<head>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
</head>
<body>
<div>Choose date:<input type="text" name="date" id="datepicker" /></div>
<script>
$("#datepicker").datepicker();
</script>
</body>
</html>

关于jquery-ui - 带有 Google Apps 脚本的 jQuery UI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9336163/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com