function isValid(str) {
if (str.indexOf('&') != -1 || str.indexOf('<') != -1 || str.indexOf('>') != -1 || str.indexOf('\'') != -1 ||
str.indexOf('\\') != -1 || str.indexOf('/') != -1 || str.indexOf('"') != -1 ||
str.indexOf('%') != -1 || str.indexOf('#') != -1) {
return false;
}
return true;
$(function() {
$('#sub-pc').click(function() {
var searchword = $.trim($('#searchword').val());
if (searchword == "" || searchword == "请输入关键字" || !isValid(searchword)) {
alert("请输入关键词后再进行提交。");
$('input[name="keyword"]').val(encodeURI(searchword));
$('form[name="searchform"]').submit();
});
$('#sub-mobile').click(function() {
var iptSword = $.trim($('#iptSword').val());
if (iptSword == "" || iptSword == "请输入关键字" || !isValid(iptSword)) {
$('input[name="keyword"]').val(encodeURI(iptSword));
科研团队
论文成果
var a="";
if(a.length=="")
{
document.write('');
else
document.write(' ');
来源: 作者:
.中国科学院西双版纳热带植物园 .All Rights Reserved
// 自适应页数加载
$("#more").casasypage({
type: "html",
start_html: '
end_html: '
html_ext: "html", // 生成页格式
chnl_url: "./",
$con_obj: $("#content")