android中字符串的javascript

android中字符串的javascript,javascript,android,string,Javascript,Android,String,我现在有一个代码片段,我想把它转换成字符串。无法找到任何解决方案。我怎么做 以下是我的JavaScript: <html> <head> </head> <body style="background-color:#FFFFFF;color:#000000;"> <p> <a href="tel:133300"> <img

我现在有一个代码片段,我想把它转换成字符串。无法找到任何解决方案。我怎么做

以下是我的JavaScript:

<html>
    <head>
    </head>
    <body style="background-color:#FFFFFF;color:#000000;">
        <p>
            <a href="tel:133300">
                <img src="http://www.biznessapps.com/imghost/0/52/104345/NewcastleTaxis.jpg" alt="" width="257" height="108" />
            </a>
        </p>
        <p>
            <strong>
                <span style="font-size: small; font-family: arial,helvetica,sans-serif;">Taxi Services</span>
            </strong><br />
            <span style="font-family: arial,helvetica,sans-serif; font-size: small;">Ring for a taxi and share the fare with a friend</span>
        </p>
        <p>
            <span style="font-family: arial,helvetica,sans-serif; font-size: small;"><a href="tel:133300">Call 133 300</a></span>
        </p>
        <p>
            <span style="font-family: arial,helvetica,sans-serif; font-size: small;">Taxis only pick up from the following secure ranks between 12am to 5am.</span><br />
            <span style="font-family: arial,helvetica,sans-serif; font-size: small;">&bull; Kent Hotel and Exchange Hotel (Beaumont St), Hamilton</span><br />
            <span style="font-family: arial,helvetica,sans-serif; font-size: small;">&bull; King St Hotel (corner of King and Steel St), Newcastle</span><br />
            <span style="font-family: arial,helvetica,sans-serif; font-size: small;">&bull; Fanny&rsquo;s (Centenary Rd), Newcastle</span><br />
            <span style="font-family: arial,helvetica,sans-serif; font-size: small;">&bull; The Brewery (Wharf Rd), Newcastle</span>
        </p>
        <p>
            <span style="font-family: arial,helvetica,sans-serif; font-size: small;">For more information visit <a href="http://www.newcastletaxis.com.au" target="_blank">www.newcastletaxis.com.au</a></span>
        </p>
    </body>
</html>


出租车服务
打电话叫辆出租车,和朋友一起分担车费

出租车只能在上午12点到5点之间从以下安全等级上车。
&公牛;汉密尔顿肯特交换酒店(博蒙特街) &公牛;纽卡斯尔国王街酒店(国王和钢铁街拐角处)
&公牛;范妮;s(百周年纪念路),纽卡斯尔
&公牛;纽卡斯尔啤酒厂(码头路)

欲了解更多信息,请访问


首先,您发布的代码不是Javascript;它是HTML(并且不包含任何Javascript)

第二,你没有为你的问题提供任何背景,也没有坦率地提出问题。请提供一些有用的信息以获得答案:

  • 你想做什么
  • 你想解决什么具体问题
  • 你在用什么编程语言
  • 到目前为止,你试图做什么,你期望发生什么,以及发生了什么
  • HTML从何而来(文件、数据库、web服务器)?它需要去哪里

此javascript在哪里?您的代码没有任何javascript。请浏览链接,它可能会帮助您:抱歉,这是我的错误,但我想以字符串形式存储代码。。首先,欢迎来到Stack Overflow!其次,不清楚你想做什么。你试过什么?+1帮助他问问题(为了你的4k)@glutnat:呵呵,谢谢你的4k:-)