小编rag*_*uel的帖子

Elementor 库:未连接(cURL 错误 28:连接超时...)

尝试在 Elementor 中加载模板时遇到问题。模板加载页面卡在加载循环中。

这些是 Wordpress -> Elementor -> System Info -> Debug 中的错误

Errors: 
        TypeError: Cannot read property 'indexOf' of null
            at http://localhost/wordpress/wp-content/plugins/elementor/assets/js/editor.min.js?ver=2.1.6 - 2:27412
            2018-08-01 15:39 +00:00

        TypeError: Cannot read property 'indexOf' of null
            at http://localhost/wordpress/wp-content/plugins/elementor/assets/js/editor.min.js?ver=2.1.5 - 2:27412
            2018-07-29 15:58 +00:00
            x 2 times
Run Code Online (Sandbox Code Playgroud)

系统信息

wordpress curl elementor

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

动态生成的 bash 菜单

我正在尝试生成一个动态菜单,然后选择要保存在变量中的选项。到目前为止我已经有了这个,但我被困住了。它总是默认为

“错误选择不在列表中,重新运行脚本。”

IFACES=$(nmcli -t -f SSID dev wifi list | grep i)
SELECTION=1
while read -r line; do
    echo "$SELECTION) $line"
    ((SELECTION++))
done <<< "$IFACES"
((SELECTION--))
echo
printf 'Select an interface from the above list: '
read -r OPT
if [[ `seq 1 $SELECTION` = $OPT ]]; then
    sed -n "${OPT}p" <<< "$IFACES" 
    IFACE=$(sed -n "${OPT}p" <<< "$IFACES") #set interface
else
    echo "ERROR Selection not in list, rerun the script."
    exit 0
fi
Run Code Online (Sandbox Code Playgroud)

bash menu dynamic selection

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

标签 统计

bash ×1

curl ×1

dynamic ×1

elementor ×1

menu ×1

selection ×1

wordpress ×1