FullCalendar.js语言文件问题&支持 [英] FullCalendar.js Problem with language files & support

查看:113
本文介绍了FullCalendar.js语言文件问题&支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我已经使用FullCalendar.js插件很长一段时间了,但我们刚刚决定为我们的一个利用这个插件的网站添加语言支持。



此插件的文档@ http:// arshaw .com / fullcalendar / docs / text / lang / [ ^ $



说我只需要将zip文件附带的js文件作为普通脚本添加到调用插件的脚本下面一切都会正常工作。



i已经完成了这个并且它不起作用,我在开发者控制台中收到错误说:



未捕获TypeError:undefined不是函数ru.js:1



文件已经最小化所以我不知道是什么导致它,有这个插件和语言支持之前有任何其他人有这个问题,或提供任何advi如何解决它,因为文档只是说要做那两件事,其他一切都会照顾好自己。

Hi Guys,
i've been using the FullCalendar.js plugin for a long time now, but we've just decided to add language support to one of our sites that utilises this plugin.

The documentation for this plugin @ http://arshaw.com/fullcalendar/docs/text/lang/[^]

says that i just need to add the js files that come with the zip file as a normal script below the one that calls the plugin and everything will work fine.

i have done this and it doesn't work, i get an error in developer console saying:

Uncaught TypeError: undefined is not a function ru.js:1

the file has been minimized so i don't know whats causing it, has anyone else had this problem with this plugin and language support before, or offer any advice on how to fix it as the documentation simply says to do those two things and everything else will take care of itself.

推荐答案

使用这段代码。



use this code.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel='stylesheet' href='http://cdnjs.cloudflare.com/ajax/libs/fullcalendar/2.1.1/fullcalendar.min.css' />
    <script type="text/javascript" src="jquery-1.9.1.js"></script>
    <script type="text/javascript" src="moment.min.js"></script>
    <script type="text/javascript" src="fullcalendar.js"></script>

<script>


(document).ready(function(){

//页面现已准备好,初始化日历......
(document).ready(function () { // page is now ready, initialize the calendar...


('#calendar ')。fulllCalendar({
//把你的选项和回调放在这里
})

});
< / script >
< / head >
< body > ;
< div id =' calendar' > < / div < span class =code-keyword>>
< / body >
< / html < /跨度> <温泉n class =code-keyword>>
('#calendar').fullCalendar({ // put your options and callbacks here }) }); </script> </head> <body> <div id='calendar'></div> </body> </html>


这篇关于FullCalendar.js语言文件问题&amp;支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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