为了得到正确格式的日期,我想要使用date("d-m-Y").现在我想以下列格式获取除日期之外的时间H:M:S我该如何处理?
我正在创建一个显示图表的页面,具体取决于在组合框中选择的类型
<div id="chartdiv"></div>
<select name="graphe" id="identifiantDeMonSelect">
<option value="Column2D">Column2D
<option value="Column3D">Column3D
<option value="Pie3D">Pie3D
<option value="Pie2D">Pie2D
</select>
<input type="submit" value="Afficher" onclick="ajax()">
<script type="text/javascript">
function ajax(){
var xhr
if (window.XMLHttpRequest) {
xhr = new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
if (xhr !=null) {
xhr.onreadystatechange = function() { type1(xhr); };
xhr.open("GET", "{{ path('Ajax')}}", true);
xhr.send(null);
} else {
alert("The XMLHttpRequest not supported");
}}
function type1(xhr){
var docXML= xhr.responseText;
var val_type = getSelectValue('identifiantDeMonSelect');
var type = val_type+"";
var str="{{ …Run Code Online (Sandbox Code Playgroud) 我使用MySQL与Symfony2合作,现在我被要求使用MS SQL Server来处理它.我该怎么办?我应该在parameters.ini文件中添加什么?提前致谢.