英 [?pr??t?k?l] ? 美 [?pro?t?k?:l] ?
n.禮儀;(外交條約的)草案;(數(shù)據(jù)傳遞的)協(xié)議;科學實驗報告(或計劃)
vt.把…寫入議定書,在議定書中擬定(或頒布)
vi.擬定議定書,擬定草案
復數(shù): protocols
javascript protocol屬性 語法
作用:設置或返回當前 URL 的協(xié)議。
語法:location.protocol=path
javascript protocol屬性 示例
<html> <head> <meta charset="UTF-8"> </head> <body> <script type="text/javascript"> document.write(location.protocol); </script> </body> </html>
運行實例 ?
點擊 "運行實例" 按鈕查看在線實例