首页javascriptcookiejQuery Data Type - 如何从数组列表中比较和排除字符串关键字...

jQuery Data Type - 如何从数组列表中比较和排除字符串关键字...

我们想知道如何从数组列表中比较和排除字符串关键字。...

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.10.1.js'></script>
<script type='text/javascript'
  src="http://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.3.1/jquery.cookie.min.js"></script>
<script type='text/javascript'>
$(function(){
if ($.cookie('test_status') != '1')
{
    setTimeout(function()
    {
        console.log('foo');
        jQuery.cookie('test_status', '1', { expires: 31}); 
    }, 1000);
}
});
</script>
</head>
<body>
</body>
</html>