小编Pop*_*rei的帖子

jQuery按类获取元素

我目前正在使用一个名为clamp.js 的脚本来剪切一些文本,它目前通过ID 选择它。我想使用它,所以它按类选择。脚本是这样的:

var module = document.getElementById("clampjs");
Run Code Online (Sandbox Code Playgroud)

如何修改该行以选择某个“测试”div 类?谢谢。

jquery class

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

Php/MySQL插入记录查询错误?

我有一个名为database.php的文件,其中包含以下内容:

    <?php

// Database connectivity stuff

$host     = "localhost"; // Hostname for the database. Usually localhost
$username = "root"; // Username used to connect to the database
$password = "root"; // Password for the username used to connect to the database
$database = "blog"; // The database used

// Connect to the database using mysqli_connect
$connection = mysqli_connect($host, $username, $password, $database);

// Check the connection for errors
    if (mysqli_connect_errno($connection)) {
    // Stop the whole page from loading if errors occur …
Run Code Online (Sandbox Code Playgroud)

php mysql function insert

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

标签 统计

class ×1

function ×1

insert ×1

jquery ×1

mysql ×1

php ×1