尝试在 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)
我正在尝试生成一个动态菜单,然后选择要保存在变量中的选项。到目前为止我已经有了这个,但我被困住了。它总是默认为
“错误选择不在列表中,重新运行脚本。”
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)