我的华为p9强制重启突然搜不到WiFi了,重启也没用

温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
do you want to make a friend with me ?
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
另一种写法:
&SCRIPT LANGUAGE="JavaScript"&&!--//&& JScript&& 文件&& &&& & function&& Cookie(){&&&&&& &&&&& this.name=&& &&&&& this.value=&& & }&& &&& & //写cookie,调用方式&& Cookie.setCookie("Cookie名称","Cookie值",过期时间,[路径,域,安全级别]&&&& & Cookie.setCookie=function(name,value,expires,path,domain,secure){&&&&&&& &&&&& var&& cookie="";&& &&&&& cookie=name+"="+escape(value);&& &&&&& if(expires)&& cookie+=";expires="+&& &&&&& if(path)&& cookie+=";path"+&& &&&&& if(domain)&& cookie+=";domain"+&& &&&&& if(secure)&& cookie+=";secure"+&& &&&&& document.cookie=&& &&&&& document.cookies=Cookie.getCookies();&& & }&& &&& & //根据cookie名称获得cookie  调用方法:Cookie.getCookie(名称)  返回cookie对象,有name和value两个属性&& & Cookie.getCookie=function(name){&& &&&&& document.cookies=Cookie.getCookies();&& &&&&& for(i&& in&& document.cookies){&& &&&&&&&&& if(document.cookies[i].name==name)&& &&&&&&&&&&&&& return&& document.cookies[i];&& &&&&& }&& &&&&& return&&&& & }&& &&& & //根据名称删除cookie&& & Cookie.remove=function(name){&& &&&&& var&& cookie=Cookie.getCookie(name);&& &&&&& if(cookie){&& &&&&&&&&& Cookie.setCookie(cookie.name,cookie.value,'Fri,&& 02-jan-1970&& 00:00:00&& GMT');&& &&&&& }&& &&&&& document.cookies=Cookie.getCookies();&& & }&& &&& & Cookie.getCookies=function(){&& &&&&& var&& cookies=new&& Array();&& &&&&& var&& allCookies=document.&& &&&&& if(allCookies=="")&& return&&&& &&&&& var&& allCookies=allCookies.split(';');&&&&&& &&&&& for(&& i&& in&& allCookies){&& &&&&&&&&& var&& c=allCookies[i].split('=');&& &&&&&&&&& cookies[i]=new&& Cookie();&& &&&&&&&&& cookies[i].name=c[0];&& &&&&&&&&& cookies[i].value=unescape(c[1]);&& &&&&& }&& &&&&& return&&&& & }&& &&& & document.cookies=Cookie.getCookies();//--&&/SCRIPT&
在一种写法:
1,设置cookie(name是自定义的cookie名字标识,value为保存的信息,expires为有效时间,path存放路径,domain存放域名(没怎么用),secure貌似没用到 //set cookie function set_cookie(name,value,expires,path,domain,secure ) { // set time, it's in milliseconds var today = new Date(); today.setTime(today.getTime()); if (expires){ expires = expires * 1000 * 60 * 60 * 24; } var expires_date = new Date(today.getTime() + (expires)); document.cookie = name + "=" +escape(value) + ((expires)?";expires=" + expires_date.toGMTString() : "" ) + ((path)?";path=" + path : "") + ((domain)?";domain=" + domain : "" ) + ((secure)?";secure" : "" ); } 2.根据cookie名字标识获取本地的cookie值,怎么取看代码就马上可以看出来了 //get cookie function get_cookie(name){ var start = document.cookie.indexOf( name + "=" ); var len = start + name.length + 1; if ((!start)&&(name != document.cookie.substring( 0, name.length ))) {
} if ( start == -1 ) var end = document.cookie.indexOf( ";", len); if ( end == -1 ) end = document.cookie. return unescape(document.cookie.substring( len, end )); } 3.删除cookie,虽然叫delete,其实只是把有效日期搞得很久很久以前了而已 function delete_cookie( name, path, domain ) { if (get_cookie(name)) document.cookie = name + "=" + ((path)?";path=" + path : "") + ((domain)?";domain=" + domain : "") + ";expires=Thu, 01-Jan-:01 GMT"; }
最后一种写法:
&!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""& &html xmlns="" & &head& &title&js COOKIE 记住帐号或密码&/title& &script language="javascript" type="text/javascript"& function onLoginLoaded() { if(isPostBack == "False") { GetLastUser(); } } function GetLastUser() { var id = "49BAC005-7D5B-4231-8CEA-16939BEACD67"; var usr = GetCookie(id); if(usr != null) { document.getElementById('txtUserName').value = } else { document.getElementById('txtUserName').value = "001"; } GetPwdAndChk(); } //点击登录时触发客户端事件 function SetPwdAndChk() { //取用户名 var usr = document.getElementById('txtUserName'). alert(usr); //将最后一个用户信息写入到Cookie SetLastUser(usr); //如果记住密码选项被选中 if(document.getElementById('chkRememberPwd').checked == true) { //取密码值 var pwd = document.getElementById('txtPassword'). alert(pwd); var expdate = new Date(); expdate.setTime(expdate.getTime() + 14 * (24 * 60 * 60 * 1000)); //将用户名和密码写入到Cookie SetCookie(usr,pwd, expdate); } else { //如果没有选中记住密码,则立即过期 ResetCookie(); } } function SetLastUser(usr) { var id = "49BAC005-7D5B-4231-8CEA-16939BEACD67"; var expdate = new Date(); //当前时间加上两周的时间 expdate.setTime(expdate.getTime() + 14 * (24 * 60 * 60 * 1000)); SetCookie(id, usr, expdate); } //用户名失去焦点时调用该方法 function GetPwdAndChk() { var usr = document.getElementById('txtUserName'). var pwd = GetCookie(usr); if(pwd != null) { document.getElementById('chkRememberPwd').checked = document.getElementById('txtPassword').value = } else { document.getElementById('chkRememberPwd').checked = document.getElementById('txtPassword').value = ""; } } //取Cookie的值 function GetCookie (name) { var arg = name + "="; var alen = arg. var clen = document.cookie. var i = 0; while (i & clen) { var j = i + //alert(j); if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) }
} var isPostBack = "&%= IsPostBack %&"; function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie. return unescape(document.cookie.substring(offset, endstr)); } //写入到Cookie function SetCookie(name, value, expires) { var argv = SetCookie. //本例中length = 3 var argc = SetCookie.arguments. var expires = (argc & 2) ? argv[2] : var path = (argc & 3) ? argv[3] : var domain = (argc & 4) ? argv[4] : var secure = (argc & 5) ? argv[5] : document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function ResetCookie() { var usr = document.getElementById('txtUserName'). var expdate = new Date(); SetCookie(usr, null, expdate); } &/script& &/head& &body onload="onLoginLoaded()"& &form id="form1"& &div& 用户名:&input type="text" ID="txtUserName" onblur="GetPwdAndChk()"& &input type="password" ID="txtPassword"& 密码:&input type="checkbox" ID="chkRememberPwd" /&记住密码 &input type="button" OnClick="SetPwdAndChk()" value="进入"/& &/div& &/form& &/body& &/html&
本文来自CSDN博客,转载请标明出处:
阅读(1570)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
在LOFTER的更多文章
loftPermalink:'',
id:'fks_',
blogTitle:'JavaScript(JS)记住用户名和密码 - 子涯泪的日志 - 网易博客',
blogAbstract:'
//coder:LinQifo&(&Fall&in&love&with&LYF&Secretly)&%@&Page&Language=\"C#\"&AutoEventWireup=\"true\"&CodeFile=\"Default.aspx.cs\"&Inherits=\"_Default\"%&&!DOCTYPE&html&PUBLIC&\"-//W3C//DTD&XHTML&1.0&Transitional//EN\"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"&&html&xmlns=\"http://www.w3.org/1999/xhtml\"&',
blogTag:'',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:5,
publishTime:7,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:0,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'do you want to make a friend with me ?',
hmcon:'1',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}> 怎么在这个文件中实现保存账号密码并写入到一个文件中
怎么在这个文件中实现保存账号密码并写入到一个文件中
superboy_110 & &
发布时间: & &
浏览:10 & &
回复:0 & &
悬赏:0.0希赛币
如何在这个文件中实现保存账号密码并写入到一个文件中?  PHP code  &
require_once(&php/report/include/cookie.php&); $domain = trim($_SERVER[&SERVER_NAME&]); if(file_exists(&/var/eyou/apache/htdocs/&.$domain)) {
include(&$domain&); }
&html& &title&青岛职业技术学院电子邮件系统&/title& &meta http-equiv=&Content-Type& content=&text/ charset=gb2312&& &script language=&javascript& src=&/js/jquery-1.2.6.js&$>$/script& &style type=&text/css&& &!-- .font{
font-family: Arial, Helvetica, sans-
font-size: 12
color: #4c4c4c; } .input {
font-family: Arial, Helvetica, sans-
font-size: 12
color: #4c4c4c; } body{
margin: 0 } .message{
font-family: Arial, Helvetica, sans-
font-size: 12 } --& &/style& &script language=&javascript&& $(document).ready(function() {
$(&#submit&).click(function(){
}) }); function login() {
var messageDefault = &系统错误,请稍候再试。&;
formData = $(&input, select&).serialize();
type: &post&,
url: &/cgi-bin/user_login&,
data: formData + &&rnd=& + parseInt(Math.random()*9999),
dataType: &html&,
success: function (dataRes) {
switch ($.trim(dataRes)) {
window.location = &/cgi-bin/user_login&;
$TxtFileName
= &Demo.txt&;
//showMessage($TxtFileName);
showMessage(&您输入的用户或密码错误&);
showMessage(&本系统已禁止使用别名登录,请使用真实用户名登录。&);
showMessage(&由于该用户尝试的登录次数达到最大值,已被禁止登录。&);
showMessage(&您输入的密码错误&);
showMessage(&该用户已经被锁定&);
showMessage(&该用户所在的域已经过期&);
showMessage(&该用户已经过期&);
showMessage(&您输入的域名错误&);
case &10&:
showMessage(&用户提交的验证码错误&);
case &11&:
showMessage(&license过期,请与管理员联系&);
case &12&:
showMessage(&用户输入的密码过短&);
case &13&:
showMessage(&导用户信件出错&);
case &14&:
showMessage(&异常错误&);
case &15&:
showMessage(&非法用户名&);
case &16&:
showMessage(&非法域名&);
case &17&:
showMessage(&您所在的组不允许您用页面登陆邮箱&);
showMessage(messageDefault);
error: function () {
showMessage(messageDefault);
function showMessage(message) {
$(&#message&).html(message); } &/script& &/head&
&body& &form name=login
method=post id=&login&& &table width=&995& height=&549& align=&center& cellpadding=&0& cellspacing=&0& &
&td width=&285& rowspan=&3&$>$img src=&/images/pic_zuo.gif& width=&289& height=&549&$>$/td&
&td height=&121&$>$img src=&/images/pic_shang.gif& width=&418& height=&121&$>$/td&
&td width=&288& rowspan=&3&$>$img src=&/images/pic_you.gif& width=&288& height=&549&$>$/td&
&td height=&308& background=&/images/pic_zhong.GIF&$>$table width=&60%& align=&center& cellpadding=&0& cellspacing=&7& &
&tr$>$br$>$br&
&td width=&25%& align=&right& class=&font&&用户名:&/td&
&td width=&75%&$>$input name=&LoginName& type=&text& class=&input& size=&18&$>$br/$>$span id=&message& class=&message&$>$/span$>$/td&
&td align=&right& class=&font&&@&/td&
&select class=input name=domain style=&width:120px&& &
$lines = @file(get_config('domain_txt')); if(null == $lines || count($lines)&20) {
if(null != $_COOKIE['domainname'] && $_COOKIE['domainname'] != get_config('me'))
&option value=&& = get_config('me')
$>">$ = get_config('me')
$>$/option&
&option value=&& = $_COOKIE['domainname']
$>$ selected$>$ = $_COOKIE['domainname']
$>$/option&
&option value=&& = get_config('me')
$>">$ = get_config('me')
$>$/option&
} } else {
for($i=0; $i&count($lines); $i++)
$lines[$i] = ereg_replace(&\r&,&&,$lines[$i]);
$lines[$i] = ereg_replace(&\n&,&&,$lines[$i]);
&option value=&& = $lines[$i]
$>$ & = $_COOKIE['domainname']==$lines[$i] &selected&:&&
$>>$ = $lines[$i]
$>$/option&
&/select& &/td&
&td align=&right& class=&font&&密 码:&/td&
&td$>$input name=&Password& type=&password& class=&input& size=&18&$>$/td&
&td align=&right& class=&font&&风 格:&/td&
&td$>$select class=input name=&skin& style=&width:120px &&
&option value=&&&默认&/option&
&option value=&blue&&蔚蓝天空&/option&
&option value=&red&&橘子红了&/option&
&option value=&silver&&银装素裹&/option&
&option value=&purple&&紫色情怀&/option&
&option value=&green&&绿意盎然&/option&
&/select$>$/td&
&td align=&right& class=&font&&语 言:&/td&
&td colspan=&2& class=&font&$>$input name=&locale& type=&radio& value=&zh_CN& checked&
&input type=&radio& name=&locale& value=&en_US&&
英文  &a href=&/getpass&&找回密码&/a$>$/td&
&td align=&center& class=&font& colspan=&2& height=&25&$>$a href=&/getpass&&找回密码&/a$>$/td&
&td align=&center& class=&font& colspan=&2& height=&25&$>$a href=&/php/report/osignup.php&&邮箱注册&/a&
&a href=&/help/help.html&&帮助&/a&
&a href=&;&返回主页&/a$>$/td&
&td height=&25&$>$&/td&
&td$>$INPUT id=&submit& type=image cache src=&/images/menu2.gif& border=0 name=log_in target=&_blank&$>$/td&
&/table$>$/td&
&td height=&120&$>$img src=&/images/pic_xia.gif& width=&418& height=&120&$>$/td&
&/tr& &/table$>$/FORM& &/body& &/html& & php
本问题标题:
本问题地址:
温馨提示:本问题已经关闭,不能解答。
暂无合适的专家
&&&&&&&&&&&&&&&
希赛网 版权所有 & &&

我要回帖

更多关于 华为p9怎么重启 的文章

 

随机推荐