Class Index | File Index

Classes


Class window.Mtils.browser

浏览器类
Defined in: Mtils.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
提供一些与当前运行环境相关的函数
Method Summary
Method Attributes Method Name and Description
<static>  
window.Mtils.browser.delAllCookie()
删除所有cookie
<static>  
window.Mtils.browser.delCookie(str_name)
删除cookie
<static>  
window.Mtils.browser.getCookie(str_name)
获取cookie值
<static>  
window.Mtils.browser.getUrlParam(Url)
获取URL中的请求参数,该函数已扩展到window/Mtils对象中
<static>  
window.Mtils.browser.setCookie(str_name, value, expires)
设置cookie
<static>  
window.Mtils.browser.version()
获取当前浏览器平台内核
Class Detail
window.Mtils.browser()
提供一些与当前运行环境相关的函数
Author: Rui.Zhang.
Method Detail
<static> {boolean} window.Mtils.browser.delAllCookie()
删除所有cookie
Author: Rui.Zhang.
Returns:
{boolean} , true: 删除成功

<static> {boolean} window.Mtils.browser.delCookie(str_name)
删除cookie
Author: Rui.Zhang.
Parameters:
{String} str_name
欲删除的cookie名称
Returns:
{boolean} , true: 删除成功

<static> {String} window.Mtils.browser.getCookie(str_name)
获取cookie值
Author: Rui.Zhang.
Parameters:
{String} str_name
欲获取的cookie名称
Returns:
{String} , cookie值, null表示未找到

<static> {Object} window.Mtils.browser.getUrlParam(Url)
获取URL中的请求参数,该函数已扩展到window/Mtils对象中
Author: Rui.Zhang.
Parameters:
{String} Url Optional
可选,带参数的URL, 默认为当前访问的URL
Returns:
{Object} , 序列化后的参数对象 array[param_Key] = param_value

<static> {boolean} window.Mtils.browser.setCookie(str_name, value, expires)
设置cookie
Author: Rui.Zhang.
Parameters:
{String} str_name
欲设置的cookie名称
{String} value
cookie值
{String} expires Optional
可选 , cookie过期时间,以分钟为单位
Returns:
{boolean} , true: 设置成功

<static> {Object} window.Mtils.browser.version()
获取当前浏览器平台内核
Author: Rui.Zhang.
Returns:
{Object} , 该对象描述了一系列可能的浏览器内核,它包含以下属性:trident: IE内核, presto: opera内核, webKit: 苹果、谷歌内核, gecko: 火狐内核Gecko, mobile: 是否为移动终端, ios: ios ,android: android, iPhone: iPhone, iPad: iPad, webApp: Safari, weChat: 微信

Documentation generated by JsDoc Toolkit 2.3.0 on Thu Jul 19 2018 17:02:28 GMT+0800 (CST)