小编Mel*_*Mel的帖子

Cakephp 3更新查询

如何在cakephp 3中更新数据?

cakephp-3.0

0
推荐指数
1
解决办法
8336
查看次数

带底部箭头的HTML评论框

我想用底部箭头创建一个评论框.但我不知道如何添加此箭头.这是我想要创建的模型.

在此输入图像描述

到目前为止这是我的代码.

.arrow-div {
    position: relative;
    background: #424242;
    margin: 2em auto;
    color:#eaeaea;
    border-radius:3px;
    height: 2.5em;
    text-align:center;
    width:270px;
 }
Run Code Online (Sandbox Code Playgroud)
<div class="arrow-div">
$167 still needed for this project
</div>
Run Code Online (Sandbox Code Playgroud)

html css

0
推荐指数
1
解决办法
270
查看次数

连接php和phonegap?

我正在使用phonegap制作一个应用程序,它允许.html形式,但我们需要.php格式文件,因此我们将使用php服务器。
在phonegap上制作index.html页面后,我没有得到任何将phonegap与php连接的示例或提示。

<html>
<head>
    <style type="text/css"></style>
    <script type="text/javascript">
    function post(){
                var first = document.getElementById("first").value; 
                var second = document.getElementById("second").value;

                var formdata = new FormData();
                formdata.append("first", first);
                formdata.append("second", second);



    var ajax = new XMLHttpRequest();
    document.getElementById('ans').innerHTML = 'Loading...';
    ajax.addEventListener("load", completeHandlerrrr, false);

    ajax.open("POST", "http://localhost/phonegap/app/post.php");
    ajax.send(formdata);
}
function completeHandlerrrr(event){

var hh= event.target.responseText; 

    document.getElementById('ans').innerHTML = hh; 

}


</script>

</head>
<body>  

 <input type="text" id="first" name="first" />
 <input type="text" id="second" name="second" /> 
 <input type="submit" id="submit" name="submit" onclick="post();"/>
<div id="ans"></div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

帖子.php

<?php
echo $_POST['first'];
echo $_POST['second'];

?>
Run Code Online (Sandbox Code Playgroud)

php mysql cordova html5-apps

-1
推荐指数
1
解决办法
1万
查看次数

在C#中获取类属性名称

我想编写获取全部或单个类属性名称的通用函数

public class MyClass
{
        public int TemplateId { get; set; }
        public int TemplateCategoryId { get; set; }
}
Run Code Online (Sandbox Code Playgroud)

示例:在其他方法中,我需要调用

var propertyName = MyClass.TemplateId.GetPrertyName(); // will Return TemplateId 
Run Code Online (Sandbox Code Playgroud)

我该怎么做?

c#

-1
推荐指数
1
解决办法
50
查看次数

标签 统计

c# ×1

cakephp-3.0 ×1

cordova ×1

css ×1

html ×1

html5-apps ×1

mysql ×1

php ×1