各位前辈帮我看看这个JSjsonp是什么么意思

我在网站上看到一段js代码不知道什么意思,麻烦大侠给我解释一下有什么作用。
我在网站上看到一段js代码不知道什么意思,麻烦大侠给我解释一下有什么作用。 5
&script type="text/javascript"&(function(){if(!/*@cc_on!@*/0)var e ="abbr,article,aside,audio,canvas,datalist,details,dialog,eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video".split(','),i=e.while(i--){document.createElement(e[i])}})()&/script&&& js代码来自
不区分大小写匿名
这是一段 html5的js文件中的代码,这段代码的作用是为了让IE(包括IE6)支持HTML5元素。望采纳。
.split(',')这个是根据逗号拆分语句的,就是拆分e,然后根据拆分成的长度,创建新的对象用e[i]承载
等待您来回答
互联网领域专家请问这个js程序是什么意思,看不懂_百度知道
请问这个js程序是什么意思,看不懂
&script type=&text/javascript&&var _bdhmProtocol = ((&https:& == document.location.protocol) ? & https://& : & http://&);document.write(unescape(&%3Cscript src='& + _bdhmProtocol + &/h.js%3Fa4c95605' type='text/javascript'%3E%3C/script%3E&));&/script&
提问者采纳
貌似是百度统计代码
提问者评价
其他类似问题
按默认排序
其他1条回答
判断当前页面的协议并动态写入script标签以实现动态导入js的目的.如果当前协议为 http,&document.write输出的是:&script&src='如果协议是https,&输出的是:&script&src='/h.js?a4c95605'&type='text/javascript'&&/script&unescape(); 函数是url解码函数
跟百度站长统计代码有没有关?
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁这个JS函数是什么意思,我怎么看他提交请求的路径?_百度知道
这个JS函数是什么意思,我怎么看他提交请求的路径?
这个JS函数是什么意思,我怎么看他提交请求的路径?function init() { document.getElementsByName(&page.pageNo&)[0].value = 1; document.searchForm.submit();}
我有更好的答案
按默认排序
document.searchForm.action
其他类似问题
函数的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁JS 高手帮我解释这都什么意思 急用!!!_百度知道
JS 高手帮我解释这都什么意思 急用!!!
$res = sql_query(&SELECT * FROM today_event ORDER BY date ASC LIMIT 10
if (! $res) fatal_error(0, sql_error());
for ($i = 0; ($row = sql_row($res, $i)); $i++) {什么意思
//什么意思
$event_date = date(&Y-m-d&,strtotime($row[2]));
//什么意思
if ($today6compare == $event_date)
//
$today_event[$i] = &&font color=#ff0000&[&.$j.&]&.htmlspecialchars($row[1]).&&/font&&;
//什么意思
$today_event[$i] = &[&.$j.&]&.htmlspecialchars($row[1]);
//什么意思
} function reorderDate($inputDate) {
$day = substr($inputDate, 8);
$month = substr($inputDate, 5, -3);
$year = substr($inputDate, 0, 4);
$outputDate = $month.&-&.$
return $outputD
//什么意思
返回的是什么}
提问者采纳
这明显是php呀..
注释一下 什么意思
嘛,我不会php哦,说错了别怪我$res = sql_query(&SELECT * FROM today_event ORDER BY date ASC LIMIT 10
if (! $res) fatal_error(0, sql_error());
//查询失败抛出错误
//定义变量j=0
for ($i = 0; ($row = sql_row($res, $i)); $i++) {
//sql_row是自定义的一个函数,作用不明
//J应该是最后显示出来的查询结果的序列号。
$event_date = date(&Y-m-d&,strtotime($row[2]));
// 查询结果返回为年-月-日格式
if ($today6compare == $event_date)
$today_event[$i] = &&font color=#ff0000&[&.$j.&]&.htmlspecialchars($row[1]).&&/font&&;
$today_event[$i] = &[&.$j.&]&.htmlspecialchars($row[1]);
} //如果返回值$today6compare这个变量的值则用红色字体输出内容
} function reorderDate($inputDate) {
$day = substr($inputDate, 8);
$month = substr($inputDate, 5, -3);
$year = substr($inputDate, 0, 4);
$outputDate = $month.&-&.$
return $outputD
//
返回的一个时间值
12-12}整体应该是一个按时间查询数据库内容的功能吧,把特定时间到的结果用红字高亮标注出来.sql_row()关键是不知道这个函数是做啥的
提问者评价
其他类似问题
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁}

我要回帖

更多关于 js是什么 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信