aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/navigator/mozsms/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/navigator/mozsms/index.html')
-rw-r--r--files/zh-cn/web/api/navigator/mozsms/index.html112
1 files changed, 112 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/navigator/mozsms/index.html b/files/zh-cn/web/api/navigator/mozsms/index.html
new file mode 100644
index 0000000000..c6c9aff864
--- /dev/null
+++ b/files/zh-cn/web/api/navigator/mozsms/index.html
@@ -0,0 +1,112 @@
+---
+title: Navigator.mozSms
+slug: Web/API/Navigator/mozSms
+translation_of: Archive/B2G_OS/API/Navigator/mozSms
+---
+<p>{{APIRef("Firefox OS")}}</p>
+
+<p>{{ non-standard_header() }}</p>
+
+<p>{{ obsolete_header(25) }}</p>
+
+<p>{{ B2GOnlyHeader2('certified') }}</p>
+
+<p>返回 {{ domxref("SmsManager") }} 对象,你可以通过该对象进行短消息的收发操作。</p>
+
+<div class="note">
+<p>注意: <strong>废弃! </strong>该对象已被废弃,请参考使用: {{ domxref("window.navigator.mozMobileMessage") }}。</p>
+</div>
+
+<h2 id="Syntax" name="Syntax">语法</h2>
+
+<pre class="eval">var sms = window.navigator.mozSms;
+</pre>
+
+<h2 id="参数说明">参数说明</h2>
+
+<p>这是一个非标准接口,不过该接口有在 W3C 部分提及: <a href="http://www.w3.org/2012/sysapps/" title="http://www.w3.org/2012/sysapps/">System Application Working Group</a>.</p>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('Messaging')}}</td>
+ <td>{{Spec2('Messaging')}}</td>
+ <td>Editor Draft (WIP).</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容">浏览器兼容</h2>
+
+<p>For obvious reasons, support is primarily expected on mobile browsers.</p>
+
+<p>{{ CompatibilityTable() }}</p>
+
+<div id="compat-desktop">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Chrome</th>
+ <th>Firefox (Gecko)</th>
+ <th>Internet Explorer</th>
+ <th>Opera</th>
+ <th>Safari</th>
+ </tr>
+ <tr>
+ <td>Basic support</td>
+ <td>{{ CompatNo() }}</td>
+ <td>{{ CompatNo() }}</td>
+ <td>{{ CompatNo() }}</td>
+ <td>{{ CompatNo() }}</td>
+ <td>{{ CompatNo() }}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<div id="compat-mobile">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Android</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Mobile</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
+ </tr>
+ <tr>
+ <td>Basic support</td>
+ <td>{{ CompatNo() }}</td>
+ <td>{{ CompatGeckoMobile("12.0") }}</td>
+ <td>{{ CompatNo() }}</td>
+ <td>{{ CompatNo() }}</td>
+ <td>{{ CompatNo() }}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<h2 id="Preferences_availability">Preferences &amp; availability</h2>
+
+<ul>
+ <li>WebSMS is disabled by default and can be enabled setting the preference <code>dom.sms.enabled</code> to true.</li>
+ <li>A comma-separated whitelist of allowed hostnames that are allowed to use the WebSMS API must be specified using the <code>dom.sms.whitelist</code> preference. This string is empty by default.</li>
+ <li>WebSMS is only available to certified apps on Firefox OS (B2G).</li>
+</ul>
+
+<h2 id="参阅">参阅</h2>
+
+<ul>
+ <li><a href="/en-US/docs/API/WebSMS" title="/en-US/docs/API/WebSMS">WebSMS API</a></li>
+ <li>{{ domxref("SmsManager") }}</li>
+ <li>{{ domxref("window.navigator.mozTelephony") }} for controlling telephone calls.</li>
+</ul>