当答案保存在数据库中但未保存时,此代码应更改按钮颜色。请帮助我成为初学者。
s = """
Vipul Singh, Jun 24, 1995
vipul singh, Jan 1, 2017, 10:00,
ANI,May 6, 2009, 14:59 IST,
"""
import re
dates = re.findall(r'[a-zA-Z]{3}\s[0-9]{1,2},\s[0-9]{4}', s)
print(dates)
代码链接 - https://drive.google.com/file/d/108XgWQFwCqJz3y58g9SN1nu6NfbbjLKG/view?usp=sharing?
答案 0 :(得分:0)
我建议您尝试使用javascrpit,试试这个:
<button id="MyButton" type="button" class="button button5">
<?php
if($flag == 1){?>
<script>
document.getElementById("MyButton").style.background = "green";
</script>
<?php } ?>