简单的聚合物元素不渲染

时间:2015-12-24 19:43:20

标签: html cordova mobile polymer polymer-1.0

我遇到聚合物问题。我想在我的PhoneGap项目中使用它,但一开始,我遇到了一个问题。简单的纸张按钮不呈现。即使在浏览器中,也不仅仅是在设备上。我将非常感谢有关使用聚合物的帮助和一些教程。

$temp = explode(".", $_FILES["image"]["name"]);
$newfilename = $username . '.' . end($temp);

if(move_uploaded_file($_FILES['image']['tmp_name'], "./images/" . $newfilename)) 
{

    $response["Result"] = "TRUE";
    $response["message"] = "$newfilename";
} 
else
{
    $response["Result"] = "FALSE";
    $response["message"] = "There was an error uploading the file, please try again!";
}

$actualpath = "http://www.example.com.au/ios/images/$newfilename";
$sql = "INSERT INTO photos (image) VALUES ('$actualpath')";

mysqli_query($conn,$sql);

1 个答案:

答案 0 :(得分:0)

paper-button的导入不正确,您应该使用:

<link rel="import"  href="bower_components/paper-button/paper-button.html">