小编Mer*_*kun的帖子

获取Google Cloud Engine VM的root密码

我刚刚在Google Cloud Engine的CentOS VM中安装了cPanel,cPanel表示默认用户名是root,默认密码是服务器的root密码.

2016-01-26 12:02:52  958 ( INFO): 3. Enter the word root in the Username text box
2016-01-26 12:02:52  958 ( INFO): 
2016-01-26 12:02:52  958 ( INFO): 4. Enter your root password in the Password text box
2016-01-26 12:02:52  958 ( INFO): 
2016-01-26 12:02:52  958 ( INFO): 5. Click the Login button
Run Code Online (Sandbox Code Playgroud)

如何获取服务器的root密码?

google-app-engine google-cloud-platform

35
推荐指数
4
解决办法
8万
查看次数

获取元素 ID Sweet Alert

我正在尝试使用甜蜜警报作为对话框来确认删除表上的条目。每个表格行上有一列,其中有一个按钮可打开“甜蜜警报”确认对话框。

我的表的代码如下:

<tr>
    <!-- Other Table Colums -->
    <td>
    <button userid="<?php echo $row['id']; ?>" id="<?php echo('bn_delete_' . $row['id']); ?>" class="btn btn-danger btn-xs warning-message-parameter">Delete</button>
    <td>
 </tr>
Run Code Online (Sandbox Code Playgroud)

我的甜蜜警报对话框的代码是:

swal({   title: "Are you sure?",   
         text: "You will not be able to recover this imaginary file!", 
         type: "warning",   showCancelButton: true,   confirmButtonColor: "#DD6B55",   
         confirmButtonText: "Yes, delete it!",   
         closeOnConfirm: false }, 
         function(){   
               swal("Deleted!", "Your imaginary file has been deleted.", "success"); });
Run Code Online (Sandbox Code Playgroud)

当用户在对话框中单击“是”时,我想获取用户刚刚单击的按钮的 id。这样我就可以获得属性 userid 的值,然后可以使用该值从数据库中删除该条目。

javascript jquery sweetalert

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