我的页面中有两个日历,使用完整的日历jQuery插件实现.
我需要加载压延机,如左前的压光机和即将到来的月份压光机.如果存在的是11月,那么右压光机应该是12月.通过给出日期我能做到这一点.
但是我有两个导航箭头可以在左右两侧的日历中导航这些日历.我怎样才能在下个月和一年中获得动态,反之亦然,即上个月和上一年提供一个月和一年.
我找到了一种方法来使用moment.js获取当前当前月份和年份,这将处理闰年和所有...
以下是到目前为止获取当前日期的代码.我需要知道如何在导航点击上获得上个月和下年以及下个月和下年.
码:
var eNow = new Date();
var eMoment = moment(eNow);
var leftEMonth = eMoment.format('MM')-1;
var leftEYear = eMoment.format('YYYY');
Run Code Online (Sandbox Code Playgroud) 我需要在网站上分享动态创建的网址到facebook和linkedin.我正在分享到Facebook正确,并已设置所有需要的og标签.但对于linkedin来说它不起作用.
这是我的网址:https://www.fourthambit.com/blogs_fa/102048
它在Facebook中正确解析并正确显示预览.
但同样的链接在linkedin中不起作用.
我错过了什么吗?
设置所有需要的元标记:
<meta property="og:title" content="Indian Media: Then.... Now... and Later" />
<meta content="Sensationalism has become synonymous with the Indian Media, especially Television. In 2008 dur..." name="description" />
<meta property="og:description" content="Sensationalism has become synonymous with the Indian Media, especially Television. In 2008 dur..." />
<meta content="Academic network" name="keywords" />
<meta property="og:image" content="https://www.fourthambit.com/article/getarticlephoto/big/ZGNlZQD4/0/102/20150807050217-12217198186.jpg" />
<img src="https://www.fourthambit.com/article/getarticlephoto/big/ZGNlZQD4/0/102/20150807050217-12217198186.jpg" style="display: none !important;" />
<meta property="og:type" content="website" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
Run Code Online (Sandbox Code Playgroud)
这是我尝试在linkedin更新状态栏textarea中查看预览时的ajax调用.
https://www.linkedin.com/sharing/api/url-preview?url=https://www.fourthambit.com/blogs_fa/102048
首先,这个Swagger PHP非常令人兴奋,非常有表现力!
有什么办法可以在swagger批注中提供PHP变量。
下面是我的代码:
define('API_PATH', '/api/demo');
/**
* @SWG\Swagger(
* basePath="{API_PATH}",
* host="11.7.11.16:xxxx",
* schemes={"http"},
Run Code Online (Sandbox Code Playgroud)
尝试在注解中也给出类似$ api_path的内容,但将其作为字符串和API调用失败了...。
basePath="$api_path",
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激
fullcalendar ×1
javascript ×1
jquery ×1
linkedin ×1
meta-tags ×1
momentjs ×1
swagger ×1
swagger-2.0 ×1
swagger-php ×1