将日期选择器添加到JetStrap页面(Twitter Bootstrap) [英] Add a date picker to a JetStrap page (Twitter Bootstrap)

查看:137
本文介绍了将日期选择器添加到JetStrap页面(Twitter Bootstrap)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天晚上开始使用JetStrap来构建一些非常基本的输入表单。很多很酷的工具和领域,但没有日期选择器。 (如果没有,请检查!)其他主题讨论了使用Twitter Bootstrap完成的任务,但不是很直接...

Just started using JetStrap tonight to build some very basic entry forms. Lots of cool tools and fields, but no date picker. (Check it out if you haven't!) Other topics discuss this being done with Twitter Bootstrap, but not very directly...

我可以通过从其他网络资源(例如Google托管库)中引入来扩展JetStrap页面中的库/控件,以添加额外的功能?我非常新的Web前端工作,并希望尽可能多地在JetStrap工作,而不必在本地下载代码,并设置我自己的本地IIS站点。

Can I extend the libraries / controls available in the JetStrap page by pulling in from other web sources (a Google hosted library for example) to add in additional functionality? I'm very new to web front end work and would like to do as much work in JetStrap as possible without having to download the code locally and set up my own local IIS site.

推荐答案

我是Jetstrap的创始人之一。

I am one of the creators of Jetstrap.

我们将尽快添加一个简单的外部JS / CSS功能,但同时您可以在JS编辑器中使用javascript动态加载脚本: p>

We will be adding an easy external JS/CSS feature very soon, but in the mean time, you can load the script dynamically with javascript in the JS editor:

$(function() {
    $.getScript('//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.0.2/js/bootstrap-datepicker.min.js', function() {
        $('.datepicker').datepicker();
    });
})

在标记中可以添加:

<input type="text" value="02-16-2012" class="datepicker">

这篇关于将日期选择器添加到JetStrap页面(Twitter Bootstrap)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆