我看过很多文档,其中很少显示使用user_id显示头像的短代码。最近的一个来自Github,它显示当前登录的用户,如下所示:
<?php
function shortcode_user_avatar() {
if(is_user_logged_in()) { // check if user is logged in
global $current_user; // get current user's information
get_currentuserinfo();
return get_avatar( $curren
我要做一个简单的求和函数。它不能正常工作。怎么啦?
let B = document.getElementById('bu');
let input1 = parseInt(document.getElementById('qq').innerHTML);
let input2 = parseInt(document.getElementById('qw').innerHTML);
B.onclick = (a, b) => {
if (a + b === 100 || a === 100 || b === 100) {
我想通过脚本在默认程序中打开一个文件(特别是视频文件)。当我遇到一个带有空格的文件名时,它被认为是几个参数,这并不奇怪:
C:\folder>start test space.avi
The system cannot find the file test.
但是,当我用引号将文件名括起来时:
C:\folder>start "test space.avi"
不是在文件的默认程序(VLC)中打开文件,而是打开一个新的命令提示符窗口,指向该文件所在的目录。
打开不带空格或引号的文件时,将按预期在VLC中打开该文件。
我怎么才能避免这个问题呢?