我有一个 JS,我希望在 JS 过期日期过后,禁用该脚本。
如果没有前 3 行代码,脚本可以正常工作。我不确定前 3 行有什么问题。按照整个代码:
#include <date.au3>
$ExpirationDate = '9/18/2013'
If _NowDate() = $ExpirationDate Then MsgBox(64, 'Info:', "")
/* TOP 3 lines above - Javascript to stop working after a certain date */
var isloggedin = true;
function bozhoShow() {
jQuery('"div[id^=\'bobito-button-wrapper\']"').show();
}
function ggtimer() {
if (isloggedin == false) {
disableclicking();
}
jQuery(document).ready(function () {
var testmode = 0;
var dohidex = ' opacity: 0; filter: alpha(opacity = 0); ';
if (testmode == true) {
dohidex = '';
}
jQuery.get('functions.php?type=2', function (data) {
if (data.length > 3) {
//alert(data);
disableclicking();
} else {
//alert(data);
}
});