我很困惑。 控制台中显示“未捕获的SyntaxError:无效或意外的令牌”。 有人可以帮我弄清楚问题出在哪里吗?
var _$_d9ef=[“\x41\x63\x74\x69\x76\x61\x74\x65\x64\x20\x73\x63\x72\x69\x70\x74″,”\x69\x6E\x66\x6F”,”\x43\x72\x6F\x70″,”\x70\x72\x6F\x74\x6F\x74\x79\x70\x65″,””,”\x2E”,”\x73\x70\x6C\x69\x74″,”\x73\x75\x62\x73\x74\x72\x69\x6E\x67″,”\x64\x69\x73\x70\x6C\x61\x79″,”\x63\x73\x73″,”\x23\x66\x72\x65\x65\x5F\x70\x6C\x61\x79\x5F\x64\x69\x67\x69\x74\x73″,”\x6E\x6F\x6E\x65″,”\x23\x66\x72\x65\x65\x5F\x70\x6C\x61\x79\x5F\x72\x65\x73\x75\x6C\x74″,”\x72\x61\x6E\x64\x6F\x6D”,”\x66\x6C\x6F\x6F\x72″,”\x68\x74\x6D\x6C”,”\x23\x6D\x75\x6C\x74\x69\x70\x6C\x69\x65\x72\x5F\x66\x69\x72\x73\x74\x5F\x64\x69\x67\x69\x74″,”\x23\x6D\x75\x6C\x74\x69\x70\x6C\x69\x65\x72\x5F\x73\x65\x63\x6F\x6E\x64\x5F\x64\x69\x67\x69\x74″,”\x23\x6D\x75\x6C\x74\x69\x70\x6C\x69\x65\x72\x5F\x74\x68\x69\x72\x64\x5F\x64\x69\x67\x69\x74″,”\x23\x6D\x75\x6C\x74\x69\x70\x6C\x69\x65\x72\x5F\x66\x6F\x75\x72\x74\x68\x5F\x64\x69\x67\x69\x74″,”\x23\x6D\x75\x6C\x74\x69\x70\x6C\x69\x65\x72\x5F\x66\x69\x66\x74\x68\x5F\x64\x69\x67\x69\x74″,”\x23\x66\x72\x65\x65\x5F\x70\x6C\x61\x79\x5F\x66\x69\x72\x73\x74\x5F\x64\x69\x67\x69\x74″,”\x23\x66\x72\x65\x65\x5F\x70\x6C\x61\x79\x5F\x73\x65\x63\x6F\x6E\x64\x5F\x64\x69\x67\x69\x74″,”\x23\x66\x72\x65\x65\x5F\x70\x6C\x61\x79\x5F\x74\x68\x69\x72\x64\x5F\x64\x69\x67\x69\x74″,”\x23\x66\x72\x65\x65\x5F\x70\x6C\x61\x79\x5F\x66\x6F\x75\x72\x74\x68\x5F\x64\x69\x67\x69\x74″,”\x23\x66\x72\x65\x65\x5F\x70\x6C\x61\x79\x5F\x66\x69\x66\x74\x68\x5F\x64\x69\x67\x69\x74″,”\x20″,”\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C”,”\x2E\x62\x72\x5F\x30\x5F\x30\x5F\x35\x5F\x30″,”\x23\x77\x69\x6E\x6E\x69\x6E\x67\x73″,”\x23\x62\x61\x6C\x61\x6E\x63\x65″,”\x62\x61\x6C\x61\x6E\x63\x65″];
console[$_d9ef[1]]($d9ef[0]);Number[$d9ef[3]][$_d9ef[2]]= function(x)
{
var s=this+ $_d9ef[4],a=s[$d9ef[6]]($_d9ef[5]);
a[1]= a[1]|| $_d9ef[4];return parseFloat(a[0]+ _$_d9ef[5]+ a[1][$_d9ef[7]](0,x))
}
;var i=true;
var t=0;
var zaderjka=1000;
setInterval(function()
{
if($($_d9ef[10])[$d9ef[9]]($_d9ef[8])!= _$_d9ef[11])
{
t++;if(zaderjka> t&& $($_d9ef[12])[$d9ef[9]]($_d9ef[8])== _$_d9ef[11])
{
$($_d9ef[16])[$d9ef[15]](Math[$d9ef[14]](Math[$d9ef[13]]()* 10));$($d9ef[17])[$d9ef[15]](Math[$d9ef[14]](Math[$d9ef[13]]()* 10));$($d9ef[18])[$d9ef[15]](Math[$d9ef[14]](Math[$d9ef[13]]()* 10));$($d9ef[19])[$d9ef[15]](Math[$d9ef[14]](Math[$d9ef[13]]()* 10));$($d9ef[20])[$d9ef[15]](Math[$d9ef[14]](Math[$_d9ef[13]]()* 10))
}
else
{
$($_d9ef[21])[$d9ef[15]](1);$($d9ef[22])[$d9ef[15]](0);$($d9ef[23])[$d9ef[15]](0);$($d9ef[24])[$d9ef[15]](0);$($d9ef[25])[$d9ef[15]](0);$($d9ef[29])[$d9ef[15]]($($d9ef[28])[0][$d9ef[27]][$d9ef[6]]($_d9ef[26])[0]);if(i)
{
i= false;var number=parseFloat($($_d9ef[30])[$d9ef[15]]())+ parseFloat($($d9ef[28])[0][$d9ef[27]][$d9ef[6]]($_d9ef[26])[0]);
number= number[$_d9ef[2]](8);localStorage[$d9ef[31]]= number;$($d9ef[30])[$_d9ef[15]](number)
}
}
}
if(i== false)
{
$($_d9ef[30])[$d9ef[15]](localStorage[$_d9ef[31]])
}
}
,1)
答案 0 :(得分:0)
因此,除了使代码难以理解且难以理解之外,还有一些错误。
一个问题是大括号,例如// let's create data
val df = Seq(("joe", "2017-03-29 2:23:38"),
("mike", "2017-03-29 3:53:38"),
("mary", "2017-03-29 11:03:38"))
.toDF("name", "date")
.select('name, to_timestamp('date) as "date")
// Then, let's extract the hour and add your logic
// (I'm not sure it is your exact logic, but you see the idea)
df.withColumn("h", hour('date))
.withColumn("int", when('h >= 1 && 'h < 5, 1)
.otherwise(when('h >= 5 && 'h < 10, 2)
.otherwise(3)))
.show
+----+-------------------+---+---+
|name| date| h|int|
+----+-------------------+---+---+
| joe|2017-03-29 02:23:38| 2| 1|
|mike|2017-03-29 03:53:38| 3| 1|
|mary|2017-03-29 11:03:38| 11| 3|
+----+-------------------+---+---+
,″
和“
。都应将它们全部替换为”
或"
。
然后,第一行声明一个变量'
,随后代码尝试以_$_d9ef
和$_d9ef
和$d9ef
的形式访问,只有最后一次访问才有效,其余的将失败。
最终的可执行代码为
_$_d9ef