我有一个phonegap项目,我愿意使用jquery mobile.我已经找了一些例子,从已经测试的东西开始,这是我的问题.当我在Nexus 5上启动应用程序时,所有元素都显示没有任何风格.也许这只是放置代码所以这是我的.希望有人能找到问题:
的index.html
<!DOCTYPE HTML>
<html>
<head>
<title>Employee Directory</title>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<link rel="stylesheet" href="css/jquery.mobile-1.4.5.min.css" />
<link rel="stylesheet" href="css/styles.css" />
</head>
<body>
<div data-role="page" class="jqm-demos ui-responsive-panel" id="panel-responsive-page1" data-title="Panel responsive page" data-url="panel-responsive-page1">
<div data-role="header">
<h1>Panel responsive</h1>
<a href="#nav-panel" data-icon="bars" data-iconpos="notext">Menu</a>
<a href="#add-form" data-icon="gear" data-iconpos="notext">Add</a>
</div><!-- /header -->
<div role="main" class="ui-content jqm-content jqm-fullwidth">
<h1>Panel responsive</h1>
<p>This is a typical page that has two buttons in the header bar that open panels. The left panel has the push display mode, the right …Run Code Online (Sandbox Code Playgroud) 我必须用这种格式标记一个字符串:
pippo:c:C2,C3,C4:pippo
Run Code Online (Sandbox Code Playgroud)
如何使用strtok对此字符串进行标记(一旦我完成标记,我就不需要字符串).我希望将单个字符存储到char变量中而不是char*变量中.