我想用底部箭头创建一个评论框.但我不知道如何添加此箭头.这是我想要创建的模型.
到目前为止这是我的代码.
.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)
我正在使用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) 我想编写获取全部或单个类属性名称的通用函数
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)
我该怎么做?