javascript
/*可获取用户,通过哪个关键词访问该页,可自行添加SOGOU,SOSO,有道等搜索引擎*/
var refer=document.referrer;
var sosuo=refer.split(".")[1];
var grep=null;
var str=null;
var keyword=null;
switch(sosuo){
case "baidu":
gre
javascript 判断两个日期大小,可以利用JS内置函数Date先把日期格式化,然后用getTime()方法获得毫秒数,然后进行比较
js
var a = new Date("2018-01-12");
var date1 = a.getTime();
var b = new Date("2019-12-31");
var date2 = b.getTime(
js
function copyUrl2()
{
var Url2=document.getElementById("biao1").innerText;
var oInput = document.createElement('input');
oInput.value = Url2;
document.body.appe
html
function addfavorite()
{
if (document.all)
{
window.external.addFavorite('https://cx.lmcjl.com','陈建霖');
}
else if (window.sidebar)
{
window.sidebar.addPanel("https://cx.lmcjl.com", "陈建霖", "");
javascript
Date.prototype.format = function() {
var s = '';
var mouth = (this.getMonth() + 1)>=10?(this.getMonth() + 1):('0'+(this.getMonth() + 1));
var day = this.getDate()>=1